![]() |
![]() |
![]() |
![]() |
Set the chroma color and operation
void PgSetChroma( PgColor_t ChromaColor, unsigned long ChromaOp );
ph
This function sets the current chroma color and defines the chroma operation.
ChromaColor is the color to test against for chroma operations. ChromaOp is made up of the following bits:
// Draw an image using a chroma color of full green PhImage_t *image; PhPoint_t p={0,0}; // Code to load the image... ... PgChromaOn(); // Set the chroma operation to copy every pixel in the source to // the destination, except the color 0x0000FF00 (bright green) PgSetChroma(0x0000FF00, Pg_CHROMA_SRC_MATCH | Pg_CHROMA_NODRAW); PgDrawPhImagemx(&p,image,0); PgChromaOff(); PgFlush();
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgChromaOff(), PgChromaOn(), PgColor_t,
"Chroma key support" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |