Method function IGDIPlus.IGPImageAttributes.GetAdjustedPalette(PGPColorPalette;TGPColorAdjustType) : TGPImageAttributes

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: IGPImageAttributes

Contents

Syntax

Delphi:

function GetAdjustedPalette( colorPalette : PGPColorPalette, colorAdjustType : TGPColorAdjustType ) : TGPImageAttributes;

C++ Builder:

TGPImageAttributes __fastcall GetAdjustedPalette( PGPColorPalette colorPalette, TGPColorAdjustType colorAdjustType );

Visual C++ (MFC):

GetAdjustedPalette(  colorPalette,  colorAdjustType );

Summary

Adjusts the colors in a palette according to the adjustment settings of a specified category.

Description

Call this method to adjust the colors in a palette according to the adjustment settings of a specified category. Remarks An TGPImageAttributes 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 GetAdjustedPalette, you can specify the adjustment category that is used to adjust the palette colors. For example, if you pass ColorAdjustTypeBitmap to the GetAdjustedPalette method, then the adjustment settings of the bitmap category are used to adjust the palette colors.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox