dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Paint Operation for this truth table?

  1. #1
    Join Date
    Dec 2010
    Posts
    114

    Paint Operation for this truth table?

    What paint operation can I use for the following truth table?
    Code:
    Truth Table
    
    0 0 => 0
    1 0 => Src
    0 1 => Dest
    1 1 => Src
    Code:
    #define SRCCOPY             (DWORD)0x00CC0020 /* dest = source                   */
    #define SRCPAINT            (DWORD)0x00EE0086 /* dest = source OR dest           */
    #define SRCAND              (DWORD)0x008800C6 /* dest = source AND dest          */
    #define SRCINVERT           (DWORD)0x00660046 /* dest = source XOR dest          */
    #define SRCERASE            (DWORD)0x00440328 /* dest = source AND (NOT dest )   */
    #define NOTSRCCOPY          (DWORD)0x00330008 /* dest = (NOT source)             */
    #define NOTSRCERASE         (DWORD)0x001100A6 /* dest = (NOT src) AND (NOT dest) */
    #define MERGECOPY           (DWORD)0x00C000CA /* dest = (source AND pattern)     */
    #define MERGEPAINT          (DWORD)0x00BB0226 /* dest = (NOT source) OR dest     */
    #define PATCOPY             (DWORD)0x00F00021 /* dest = pattern                  */
    #define PATPAINT            (DWORD)0x00FB0A09 /* dest = DPSnoo                   */
    #define PATINVERT           (DWORD)0x005A0049 /* dest = pattern XOR dest         */
    #define DSTINVERT           (DWORD)0x00550009 /* dest = (NOT dest)               */
    #define BLACKNESS           (DWORD)0x00000042 /* dest = BLACK                    */
    #define WHITENESS           (DWORD)0x00FF0062 /* dest = WHITE                    */
    Can't get it to work.
    Please shed some lights on this.
    thanks
    Jack

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,258

    Re: Paint Operation for this truth table?

    Could you be more specific/clear?
    Where is your table? What do the table values mean?
    How are you going to "paint" it?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)