Results 1 to 3 of 3

Thread: DirectDraw7 GetLockedPixel

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    Help! How do I get this thingy to work properly? I ask it for a pixel and grab the return in a long, but it returns all these fruity values like -1 and -531 and things like 20 (which is absolutely not one of the pixels in my pic), and so on. How do I get it to work in 16-bit and 32-bit color modes? PLEASE HELP AHH!
    Vuen

  2. #2
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    How about posting some code, it would help a lot...
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    depends, what mode are you using, negative values might occur if you use 32 bit color mode. if you use palettes you get the palette index
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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