Description
Adjusts the colors in a palette according to
the adjustment settings of a specified category.
Syntax
GpStatus WINGDIPAPI
GdipGetImageAttributesAdjustedPalette(
GpImageAttributes *imageAttr,
ColorPalette *
colorPalette,
ColorAdjustType
colorAdjustType
);
PowerBASIC Syntax
DECLARE FUNCTION
GdipGetImageAttributesAdjustedPalette ( _
BYVAL imageattr
AS DWORD, _
BYREF palette
AS ColorPalette, _
BYVAL
colorAdjustType AS LONG _
) AS LONG
Parameters
imageattr
[in] Pointer to the
ImageAttributes
object.
palette
[in, out] Pointer to a
ColorPalette
structure that on input, contains the palette to be adjusted and, on
output, receives the adjusted palette.
colorAdjustType
[in]
Element of the
ColorAdjustType
enumeration that specifies the category whose adjustment settings will
be applied to the palette.
Remarks
An ImageAttributes object
maintains color and grayscale settings for five adjustment
categories: default, bitmap, brush, pen, and text. For example, you
can specify a color-remap table for the default category,
a different color-remap table for the bitmap category, and still a different
color-remap table for the pen category.
When
you call GdipGetImageAttributesAdjustedPalette, you
can specify the adjustment category that is used to
adjust the palette colors. For example, if you pass
ColorAdjustTypeBitmap to the GdipGetImageAttributesAdjustedPalette function,
then the adjustment settings of the bitmap category
are used to adjust the palette colors.
|