what is the Pixel Format and how does it work?
Printable View
what is the Pixel Format and how does it work?
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.
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).
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.
You will have to do some experimentation (its good for you =).
Z.
How does the mask aply to the pixel formate?