Results 1 to 6 of 6

Thread: DirectX Pixel Format

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151

    Question DirectX Pixel Format

    what is the Pixel Format and how does it work?

  2. #2
    Zaei
    Guest
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    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).

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    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.

  5. #5
    Zaei
    Guest
    You will have to do some experimentation (its good for you =).

    Z.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    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
  •  



Click Here to Expand Forum to Full Width