Share via


CImage::SetTransparentColor

Sets a color at a given indexed location as transparent.

LONG SetTransparentColor(
   LONG iTransparentColor 
) throw( );

Parameters

  • iTransparentColor
    The index, in a color palette, of the color to set to transparent. If –1, no color is set to transparent.

Return Value

The index of the color previously set as transparent.

Requirements

Header: atlimage.h

See Also

Reference

CImage Class

CImage::GetTransparentColor

Other Resources

CImage Members