PDA

Click to See Complete Forum and Search --> : DirectX Pixel Format


KingDavid
Jul 13th, 2002, 07:52 PM
what is the Pixel Format and how does it work?

Zaei
Jul 13th, 2002, 10:43 PM
Depends on the bit depth that you are rendering at. If it is \, for instance, 16 bits, each pixel is 2 bytes wide. If at 32, then each is 4 bytes wide (the easiest to work with).

Z.

KingDavid
Jul 14th, 2002, 02:16 AM
1)How do you find how wide the pixel format on a Direct draw surface is?

2)How do you convert it to another format?(the easiest to work with).

KingDavid
Jul 14th, 2002, 02:56 AM
Ok I think I figured out how to get the pixel formate sort of....

When I tryed to plot a pixel I used the setLockedPixel() Method and I used RGB to build the color. Red and Blue values were mixed up...
rgb(255,0,0) was blue and rgb(0,0,255) was red
this is wrong right.

Zaei
Jul 14th, 2002, 12:03 PM
You will have to do some experimentation (its good for you =).

Z.

KingDavid
Jul 14th, 2002, 01:53 PM
How does the mask aply to the pixel formate?