|
-
Jul 13th, 2002, 07:52 PM
#1
Thread Starter
Addicted Member
DirectX Pixel Format
what is the Pixel Format and how does it work?
-
Jul 13th, 2002, 10:43 PM
#2
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.
-
Jul 14th, 2002, 02:16 AM
#3
Thread Starter
Addicted Member
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).
-
Jul 14th, 2002, 02:56 AM
#4
Thread Starter
Addicted Member
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.
-
Jul 14th, 2002, 12:03 PM
#5
You will have to do some experimentation (its good for you =).
Z.
-
Jul 14th, 2002, 01:53 PM
#6
Thread Starter
Addicted Member
How does the mask aply to the pixel formate?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|