CImage::SetPixelRGB

Sets the pixel at the locations specified by x and y to the colors indicated by r, g, and b, in a red, green, blue (RGB) image.

void SetPixelRGB( 
   int x, 
   int y, 
   BYTE r, 
   BYTE g, 
   BYTE b  
) throw( );

Parameters

  • x
    The horizontal location of the pixel to set.

  • y
    The vertical location of the pixel to set.

  • r
    The intensity of the red color.

  • g
    The intensity of the green color.

  • b
    The intensity of the blue color.

Remarks

The red, green, and blue parameters are each represented by a number between 0 and 255. If you set all three parameters to zero, the combined resulting color is black. If you set all three parameters to 255, the combined resulting color is white.

Requirements

Header: atlimage.h

See Also

Reference

CImage Class

CImage::SetPixel

CImage::SetPixelIndexed

Other Resources

CImage Members