Results 1 to 2 of 2

Thread: Pixel Values [Resolved]

Threaded View

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Pixel Values [Resolved]

    Howdy all,

    I know this is the C/C++ forum, but the Assembly forum is pretty much dead. I'm wanting to know what the following code would be in ASM (MASM really):
    Code:
    #define GetRValue(rgb)      ((BYTE)(rgb))
    #define GetGValue(rgb)      ((BYTE)(((WORD)(rgb)) >> 8))
    #define GetBValue(rgb)      ((BYTE)((rgb)>>16))
    I'm wanting to retrieve the Red Green and Blue values of a picture on a DC.

    Any help would be great.

    Phreak
    Last edited by «°°phReAk°°»; Jul 8th, 2004 at 06:28 PM.

    Visual Studio 6, Visual Studio.NET 2005, MASM

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