Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

Reference for unit 'Graphics': Procedures and functions

AllocPatternBitmap

  

Ensures that a Pattern Bitmap with the specified colors exists in the Pattern cache.

Blue

  

Finds the Blue component of the supplied color.

CharsetToIdent

  

Converts the specified numeric character set identifier to its representation as a string.

ClearXLFDHeight

  

Replaces the PixelSize, PointSize, ResolutionX, ResolutionY and AverageWidth segments in an XLFD font name with the '*' wildcard.

ClearXLFDItem

  

Replaces the specified XLFD segment value with the '*' wildcard.

ClearXLFDPitch

  

Replaces the spacing for a XLFD font descriptor format with a '*' wildcard.

ClearXLFDStyle

  

Replaces the WeightName, Slant and SetwidthName segments in an XLFD font name with the '*' wildcard.

ColorIndex

  

Finds the position in the color identifier map for the specified value.

ColorToIdent

  

ColorToIdent - given a Color value, find its name (Ident) in the look-up table of Colors.

ColorToRGB

  

Converts a TColor value to an RGB color constant.

ColorToString

  

ColorToString - given a color value, returns a corresponding color name like 'Green'

CreateBitmapFromFPImage

  

Creates a Bitmap with the content from the specified TFPCustomImage instance.

CreateBitmapFromLazarusResource

  

Creates and loads a Bitmap from a Lazarus Resource (.lrs) file.

CreateBitmapFromResourceName

  

Creates a TCustomBitmap instance with the content for the named Lazarus resource.

CreateCompatibleBitmaps

  

Creates a TLazIntfImage instance for the specified raw image data, and returns the handles to the image and optional mask information.

CreateGraphicFromResourceName

  

Creates and loads a TGraphic instance with the content from the specified resource instance handle and resource name.

DbgS

  

Creates a formatted debugger message with values from the TFontStyles set.

DecColor

  

Decreases the component RGB values in a color by the specified amount (results in a darker color overall).

ExtractFamilyFromXLFDName

  

Gets the family name for the typeface used in the XLFD font descriptor.

ExtractXLFDItem

  

Gets the value for the specified segment in an XLFD font descriptor.

FontNameToPangoFontDescStr

  

Parses the specified font name into X Logical Font Descriptor attributes.

FPColorToTColor

  

FPColorToTColor - converts a color specified as a FPColor to a color of type TColor.

FPColorToTColorRef

  

Converts a TFPColor value to a Cardinal color reference used in API system color constants.

GetCharsetValues

  

Calls the specified procedure for each of the character set names in FontCharsets.

GetColorValues

  

Executes the specified procedure for each of the non-deprecated Color names defined for the platform.

GetDefFontCharSet

  

Gets the default TFontCharSet value for the platform.

GetFontData

  

Gets font data for the specified font handle.

GetGraphicClassForFileExtension

  

Gets the TGraphicClass instance used for images with the specified file extension.

GraphicExtension

  

Gets a string with the file extension used for the specified image class type.

GraphicFileMask

  

Gets a file filter which can be used to select image files for the specified TGraphicClass instance.

GraphicFilter

  

Gets a filter string for files using the specified image class type.

Green

  

Finds the Green component of the supplied color.

IdentEntry

  

Checks whether a given Entry exists in a Map of color names.

IdentToCharset

  

Converts the specified character set identifier to the its numeric representation.

IdentToColor

  

IdentToColor - given a color identifier (name) returns the color value.

IncColor

  

Increases the component RGB values in a color by the specified amount (results in a lighter color overall).

InvertColor

  

InvertColor - returns the complementary color to the supplied value - helps to produce a 'negative' image.

IsFontNameXLogicalFontDesc

  

Determines if the specified font name is a valid X Logical Font Description.

IsSysColor

  

Indicates whether the specified color reference is one of the system colors.

LazResourceXPMToPPChar

  

Loads an XPM image resource into an array.

LoadBitmapFromLazarusResource

  

Deprecated - technically a bitmap is created, not loaded.

LoadBitmapFromLazarusResourceHandle

  

Deprecated - technically a bitmap is created, not loaded.

LoadCursorFromLazarusResource

  

LoadCursorFromLazarusResource - loads a named cursor handle from the Lazarus Resource (.LRS).

ReadXPMFromStream

  

Converts an XPM image stored in the specified stream into an array of PChar values.

ReadXPMSize

  

Reads the first line from an XPM PChar array which contains the width, height and number of colors for the XPM data.

Red

  

Finds the Red component of the supplied color.

RedGreenBlue

  

RedGreenBlue - decomposes a composite color into its component Red, Green and Blue values.

Register

  

Registers TPersistent classes for use in the RTL.

RGBToColor

  

Combines the values for Red, Green and Blue into a TColor value.

ScaleX

  

Resizes the specified horizontal size from a given display density to the current screen PPI.

ScaleY

  

Resizes the specified vertical size from a given display density to the current screen PPI.

StringToColor

  

StringToColor - given a color name like 'clBlue', returns the corresponding color value.

StringToColorDef

  

Converts a color name, like "clBlue", to a TColor value with an optional default value when the color name does not exist.

SysColorToSysColorIndex

  

SysColorToSysColorIndex - if Color is one of the system colors, returns the Index of the system color.

TColorToFPColor

  

TColorToFPColor - converts a color of type TColor to one specified as a FPColor.

TestStreamIsBMP

  

Examines values in the specified stream to determine if it contains a .BMP image.

TestStreamIsCursor

  

Examines values in the specified stream to determine if it contains a .CUR cursor image.

TestStreamIsIcon

  

Examines values in the specified stream to determine if it contains a .ICO image.

TestStreamIsXPM

  

Examines values in the specified stream to determine if it contains a .XPM image.

UpdateHandleObjects

  

Renews handles for Fonts, Pens, and Brushes.

XLFDHeightIsSet

  

Checks whether an explicit value is assigned to XLFD segments controlling font height.

XLFDNameToLogFont

  

Gets a logical font record with values representing the specified XLFD font descriptor.

XPMToPPChar

  

Converts an XPM image file into an array of PChar values.