Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.26 KB

GdipSetImageAttributesColorKeys.md

File metadata and controls

60 lines (43 loc) · 1.26 KB

Home

Function name : GdipSetImageAttributesColorKeys

Group: GDI+ ImageAttributes - Library: gdiplus


Sets the color key (transparency range) for a specified ColorAdjustType.


Code examples:

GDI+: Color Transparency

Declaration:

GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(
	GpImageAttributes *imageattr,
	ColorAdjustType type,
	BOOL enableFlag,
	ARGB colorLow,
	ARGB colorHigh)  

FoxPro declaration:

DECLARE INTEGER GdipSetImageAttributesColorKeys IN gdiplus;
	INTEGER imageattr,;
	INTEGER ColorAdjustType,;
	INTEGER enableFlag,;
	LONG colorLow,;
	LONG colorHigh  

Parameters:

imageattr [in] Handle to the ImageAttributes object.

type [in] Element of the ColorAdjustType enumeration that specifies the category for which the color key is set.

enableFlag [in] Enables a separate transparency range.

colorLow [in] Lowest ARGB value in the transparency range.

colorHigh [in] Highest ARGB value in the transparency range.


Return value:

Returns GpStatus value, 0 means success.