Interface IGDIPlus.IGPImageAttributes
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.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Contents |
Syntax
Delphi:
type IGPImageAttributes = interface
Summary
Interface to a TGPImageAttributes object.
Description
Defines interface to a TGPImageAttributes object.
An TGPImageAttributes object contains information about how bitmap and metafile colors are manipulated during rendering. An TGPImageAttributes object maintains several color-adjustment settings, including color-adjustment matrices, grayscale-adjustment matrices, gamma-correction values, color-map tables, and color-threshold values. Remarks The colors in an image can be manipulated during rendering. They can be corrected, darkened, lightened, removed, and so on. To apply such manipulations, initialize a TGPImageAttributes object and pass the address of that TGPImageAttributes object (along with the address of an Image object) to the TGPGraphics.DrawImage method.
Methods
- function GetNativeImageAttr() : GpImageAttributes
- function Clone() : TGPImageAttributes - Makes a copy of the TGPImageAttributes object.
- function SetToIdentity(type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the color-adjustment matrix of a specified category to identity matrix.
- function Reset(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears all color- and grayscale-adjustment settings for a specified category.
- function SetColorMatrix(colorMatrix : TGPColorMatrix; mode : TGPColorMatrixFlags; var type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the color-adjustment matrix for a specified category.
- function ClearColorMatrix(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the color-adjustment matrix for a specified category.
- function SetColorMatrices(colorMatrix : TGPColorMatrix; grayMatrix : TGPColorMatrix; mode : TGPColorMatrixFlags; var type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the color-adjustment matrix and the grayscale-adjustment matrix for a specified category.
- function ClearColorMatrices(Type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the color-adjustment matrix and the grayscale-adjustment matrix for a specified category.
- function SetThreshold(threshold : Single; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the threshold (transparency range) for a specified category.
- function ClearThreshold(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the threshold value for a specified category.
- function SetGamma(gamma : Single; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the gamma value for a specified category.
- function ClearGamma(type_ : TGPColorAdjustType) : TGPImageAttributes - Disables gamma correction for a specified category.
- function SetNoOp(type_ : TGPColorAdjustType) : TGPImageAttributes - Turns off color adjustment for a specified category.
- function ClearNoOp(Type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the NoOp setting for a specified category.
- function SetColorKey(colorLow : TGPColor; colorHigh : TGPColor; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the color key (transparency range) for a specified category.
- function ClearColorKey(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the color key (transparency range) for a specified category.
- function SetOutputChannel(channelFlags : TGPColorChannelFlags; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the CMYK output channel for a specified category.
- function ClearOutputChannel(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the cyan-magenta-yellow-black (CMYK) output channel setting for a specified category.
- function SetOutputChannelColorProfile(colorProfileFilename : WideString; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the output channel color-profile file for a specified category.
- function ClearOutputChannelColorProfile(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the output channel color profile setting for a specified category.
- function SetRemapTable(mapSize : Cardinal; map : PGPColorMap; type_ : TGPColorAdjustType) : TGPImageAttributes - Sets the color-remap table for a specified category.
- function ClearRemapTable(type_ : TGPColorAdjustType) : TGPImageAttributes - Clears the color-remap table for a specified category.
- function SetBrushRemapTable(mapSize : Cardinal; map : PGPColorMap) : TGPImageAttributes - Sets the color remap table for the brush category.
- function ClearBrushRemapTable() : TGPImageAttributes - Clears the brush color-remap table of the TGPImageAttributes object.
- function SetWrapMode(wrap : TGPWrapMode; color : TGPColor; var clamp : Boolean) : TGPImageAttributes - Sets the wrap mode of the TGPImageAttributes object.
- function GetAdjustedPalette(colorPalette : PGPColorPalette; colorAdjustType : TGPColorAdjustType) : TGPImageAttributes - Adjusts the colors in a palette according to the adjustment settings of a specified category.