Log in

View Full Version : Bitcount problem



ijcro
07-10-2004, 07:32 PM
Sorry but I have big problem with convert color for target surface of screen in 16 bit (for 32 bit all is OK) still.

TDirectDrawSurface bring picture, is transparent and defined in 24 bit.

Transparent color is adjusted to target surface in TDirectDrawSurface already; this is 16 bit and transparent color is decreased in scheme 5-6-5.

When TDirect3DTexture2 created (from TDirectDrawSurface trought TDIB), no information about transparent color there, it is lost; adjusted 16 bit transparent color is wrong (no corespond with 32 bit texture). TDirect3DTexture2 created as 32 bit.

Only one parameter (TDirectDrawSurface) is available !

In finally, no transparent picture show. Can anyone help me with them, please ??

Fairly thanks for any post or example.