共用方式為


CImage::SetPixelIndexed

Sets the pixel color to the color located at iIndex in the color palette.

void SetPixelIndexed(
   int x,
   int y,
   int iIndex 
) throw( );

Parameters

  • x
    The horizontal location of the pixel to set.

  • y
    The vertical location of the pixel to set.

  • iIndex
    The index of a color in the color palette.

Requirements

Header: atlimage.h

See Also

Concepts

CImage Class

CImage Members

CImage::SetPixel

CImage::SetPixelRGB