Thread: How to use color keys ?

  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    China
    Posts
    17

    How to use color keys ?

    I want to ask a question: How to use color keys ? I never hear it before!!

    I used vs2005 , and the operating system is Windows XP

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    If you mean that trick in film (which is actually called chroma key) you just subtract the pixels of a certain color, like green, and add in the ones from your replacement image from the same coordinates. You could do it row by row of pixels. I have no idea how efficient that is though.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Location
    China
    Posts
    17

    Unhappy

    Why I post a new message? I just post it in that top theme

  4. #4
    Registered User
    Join Date
    Nov 2008
    Location
    China
    Posts
    17
    Code:
    Nomally, I like use following code to build program frame
    //#define BLUEGUY_MARK 
    
    #ifdef BLUEGUY_MARK
    
       #define chSTR2(x)   #x   
    
     #define chSTR(x)    chSTR2(x)   
    
     #define chMSG(desc)     message(__FILE__"("chSTR(__LINE__)"):"#desc) 
    
     #define NOT_IMPLEMENT_YET chMSG(not implement yet)  
    
     #pragma NOT_IMPLEMENT_YET
    
    #endif

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,665
    > Why I post a new message?
    I moved it because it was an off-topic hijack of another thread.

    The colour in the post you bumped is just HTML for illustration only.

    Most modern IDE's can syntax colour the code (keywords blue, comments green etc etc).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed