Back to Devexpress

dxCoreGraphics Unit

vcl-dxcoregraphics.md

latest9.5 KB
Original Source

dxCoreGraphics Unit

Implements base color and image-related types and methods in the DevExpress VCL library.

Classes

NameDescription
TdxAdvancedColorPaletteStores and manages two color palettes with named colors used in UI elements.
TdxCustomColorPaletteThe base class for all classes that implement color palette containers in DevExpress products.
TdxCustomFastDIBThe base class for all classes that implement simple memory buffers for DIB images.
TdxFastDIBA memory DC-based buffer for DIB images.
TdxSimpleColorPaletteA simple palette container that stores two colors.

Interfaces

NameDescription
IdxColorPaletteExposes the functions that return stroke and fill colors by their names in corresponding palettes.

Records

NameDescription
TdxAlphaColorsStores TdxAlphaColor equivalents of predefined TColor constants and implements auxiliary color-related methods.

Enums

NameDescription
TdxAlphaStateEnumerates available states of pixel transparency information that bitmaps can store.
TdxGraphicUnitEnumerates measurement units used to specify visual element dimensions and font sizes in DevExpress VCL controls.

Methods

NameDescription
cxGetBitmapPixelFormat(TBitmap)Returns the color depth of a bitmap image stored in the specified bitmap container.
dxAlphaColorToColor(TdxAlphaColor,Byte)Converts a specified TdxAlphaColor value to the TColor type.
dxAlphaColorToColor(TdxAlphaColor)
dxAlphaColorToRGBQuad(TdxAlphaColor)Converts a specified TdxAlphaColor value to the TRGBQuad type.
dxColorToAlphaColor(TColor,Byte)Converts a specified TColor value to the TdxAlphaColor type.
dxColorToRGBQuad(TColor,Byte)Converts a specified TColor value to the TRGBQuad type.
dxFillBitmapInfoHeader(TBitmapInfoHeader,Integer,Integer,WordBool)Returns the header information of a specified bitmap object.
dxFillBitmapInfoHeader(TBitmapInfoHeader,TBitmap,WordBool)
dxGetAlpha(TdxAlphaColor)Extracts the alpha value (also called transparency level) from a specified color.
dxGetAlphaState(TRGBColors)
dxGetAlphaState(TBitmap)Identifies if the specified bitmap includes pixel transparency information (and whether it is in use).
dxGetBitmapData(HBITMAP,TBitmap)Returns a record populated with pixel data and image information by the specified bitmap handle.
dxGetBlue(TdxAlphaColor)Extracts the blue color component value from a specified color.
dxGetBrushData(HBRUSH,TLogBrush)Returns settings of a brush object identified by its handle.
dxGetBrushData(HBRUSH)
dxGetFontData(HFONT,TLogFont)
dxGetFontData(HFONT)Returns settings of a font object identified by its handle.
dxGetGreen(TdxAlphaColor)Extracts the green color component value from a specified color.
dxGetPenData(HPEN,TLogPen)Returns settings of a pen object identified by its handle.
dxGetRed(TdxAlphaColor)Extracts the red color component value from a specified color.
dxGraphicIsEquals(TGraphic,TGraphic)Identifies if the content of two specified image containers is identical.
dxIsAlphaUsed(TBitmap)Determines if the alpha channel is used in a specified bitmap object.
dxMakeAlphaColor(Byte,Byte,Byte,Byte)
dxMakeAlphaColor(Byte,Byte,Byte)
dxMakeAlphaColor(TColor,Byte)Creates a TdxAlphaColor value from individual color component values and returns it as the function’s result.
dxRGBQuadToColor(TRGBQuad)Converts a specified TRGBQuad value to the TColor type.
GetBitmapBits(TBitmap,TRGBColors,Boolean)
GetBitmapBitsByScanLine(TBitmap,TRGBColors)Obtains pixel data from individual scanlines of a specified bitmap object.
SetBitmapBits(TBitmap,TRGBColors,Boolean)Stores pixel data to a specified bitmap object.

Constants

NameDescription
AlphaMaskSpecifies the hexadecimal value that corresponds to the non-transparent TdxAlphaColor value.
AlphaShiftSpecifies the right bit shift that corresponds to alpha component bits in a TdxAlphaColor value.
BlueMaskSpecifies the hexadecimal value that corresponds to the blue TdxAlphaColor value.
BlueShiftSpecifies the right bit shift corresponding to blue component bits in a TdxAlphaColor value.
dxacDefaultStores the default TdxAlphaColor value that corresponds to a skin-determined color.
dxacNoneStores the empty TdxAlphaColor value whose alpha and color channels are set to zero.
GreenMaskSpecifies the hexadecimal value corresponding to the green TdxAlphaColor value.
GreenShiftSpecifies the right bit shift corresponding to green component bits in a TdxAlphaColor value.
RedMaskSpecifies the hexadecimal value corresponding to the red TdxAlphaColor value.
RedShiftSpecifies the right bit shift corresponding to red component bits in a TdxAlphaColor value.

Types

NameDescription
PdxAlphaColorThe pointer type for TdxAlphaColor.
TdxAlphaColorA 4-byte unsigned integer that stores red, green, blue, and alpha (opacity) color component values (from 0 to 255).
TdxAlphaColorFunc
TRGBColorsAn array of TRGBQuad values used to store pixel data.

Remarks

Add the dxCoreGraphics unit to the uses clause of your project (in Delphi) or include the dxCoreGraphics.hpp header to the required source code file (in C++Builder) to use DevExpress color and image-related types and methods in your code.