diff --git a/docs/xml/lcl/graphics.xml b/docs/xml/lcl/graphics.xml index c109a1bd92..a044c10306 100644 --- a/docs/xml/lcl/graphics.xml +++ b/docs/xml/lcl/graphics.xml @@ -154,11 +154,17 @@ - + + + - + + + - + + + @@ -178,13 +184,21 @@ - + + + - + + + - + + + - + + + @@ -205,23 +219,28 @@ - A record holding Data about the current Font + A record holding Data about the current Font + - The Operating System Handle for the current Font + The Operating System Handle for the current Font + - The Height (in pixels) if the current Font + The Height (in pixels) if the current Font + - The Pitch (in points) of the currentFont + The Pitch (in points) of the currentFont + - The Style of the Font + The Style of the Font + Bold, Italic, Strikeout or Underlined @@ -230,17 +249,22 @@ - The Name (as a string) of the current Font + The Name (as a string) of the current Font + - Default Data for any new Font + + Default Data for any new Font +

New TFont instances are initialized with the values in this structure.

About font default values: The default font is chosen by the interfaces depending on the context.

For example, there can be a different default font for a button and a groupbox.

- + + +
@@ -248,11 +272,17 @@ At the Bottom, Centre or Top of the available window or box - + + + - + + + - + + + The Style of the Text to be drawn in a rectangle @@ -329,19 +359,33 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -349,57 +393,105 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + Style of Brush to be used - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -413,9 +505,13 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + @@ -429,15 +525,25 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + @@ -451,9 +557,13 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + @@ -461,11 +571,17 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + @@ -473,19 +589,33 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -493,23 +623,41 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -517,9 +665,13 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + @@ -1241,11 +1393,17 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + @@ -1253,35 +1411,65 @@ RightToLeft: Boolean; For RightToLeft text reading (Text Direction) - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -1405,7 +1593,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1480,7 +1670,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1496,13 +1688,21 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + - + + + - + + + - + + + @@ -1511,9 +1711,13 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + - + + + @@ -1522,11 +1726,17 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + - + + + - + + + @@ -1535,16 +1745,25 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + - + + + - + + + - + + + - The Font to be used for drawing Text + The Font to be used for drawing Text +

Most of the data about the font are dealt with by the protected procedures GetData and SetData which operate on TFontData

Individual properties such as Character Set, colour and size can be accessed in the public area

@@ -1643,7 +1862,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor.
- + + + @@ -1652,7 +1873,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1661,7 +1884,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1670,7 +1895,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1679,7 +1906,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1695,7 +1924,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1704,7 +1935,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1713,7 +1946,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1722,7 +1957,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1731,7 +1968,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1740,7 +1979,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1749,7 +1990,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1758,7 +2001,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1767,7 +2012,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1776,7 +2023,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1785,7 +2034,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1794,7 +2045,9 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + @@ -1803,26 +2056,39 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. - + + + - Font constructor + + Font constructor Opens a new instance of the class and sets defaults for character set, colour, size etc - Font destructor + + Font destructor - Assign - copies the LogFont or Source settings to itself -

Method: TFont.Assign

Params: ALogFont: TLogFont or

Source: another font

Returns: nothing

+ + Assign - copies the LogFont or Source settings to itself + +

Method: TFont.Assign +

+

Params: ALogFont: TLogFont or

+

+ Source: another font

+

Returns: nothing

Copies the logfont or source settings to itself
- + + + @@ -1831,7 +2097,9 @@ Copies the logfont or source settings to itself - + + + @@ -1854,7 +2122,9 @@ Copies the logfont or source settings to itself - + + + @@ -1863,7 +2133,9 @@ Copies the logfont or source settings to itself - + + + @@ -1884,11 +2156,14 @@ Copies the logfont or source settings to itself - The Character Set to be used by the currentFont + The Character Set to be used by the currentFont + - Colour of the current Font + + Colour of the current Font + Default is the same as the text used for the rest of the Window @@ -1897,45 +2172,61 @@ Copies the logfont or source settings to itself - Name of the Font + + Name of the Font + - Pitch type of the Font + + Pitch type of the Font + Fixed or variable pitch, or Default
Reads or writes a flag to determine pitch type
- + + +
- FontSize in pixels + + Font + Size in pixels - Style of the Font + + Style of the Font + Bold, Italic, Strike out, Underline
Property is a set, so may contain zero or more of the above (if set is empty, Normal font is displayed)
- The Data associated with the current Pen + The Data associated with the current Pen + - The Operating System Handle associated with the current Pen + The Operating System Handle associated with the current Pen + - The Colour of the curent Pen + The Colour of the curent Pen + - The Width in pixels of the current Pen + The Width in pixels of the current Pen + - The Style asociated with the current Pen - The Style asociated with the current Pen
+ The Style asociated with the current Pen + + The Style asociated with the current Pen +
Can take any of the values: psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClear
@@ -1954,7 +2245,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -1964,7 +2257,8 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - The current Pen for drawing on the current Canvas + The current Pen for drawing on the current Canvas + @@ -2017,7 +2311,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -2026,7 +2322,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -2035,7 +2333,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -2044,7 +2344,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -2053,7 +2355,9 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + @@ -2062,37 +2366,47 @@ psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClea - + + + - Pen Constructor + + Pen Constructor Most of its properties are inherited from the parent class - Pen Destructor + + Pen Destructor Most of its properties are inherited from the parent class - Copies the SourcePen to itself + Copies the Source + Pen to itself - + + + - the Operating System Handle for the current Pen + the Operating System Handle for the current Pen + Reads or writes a flag to determine the handle - The Colour of the current Pen + The Colour of the current Pen + Reads or Writes a flag to determine the colour. Default is black - The Mode for the current Pen + The Mode for the current Pen + Can take any of the values:
pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy,
pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge,
@@ -2101,26 +2415,31 @@ Default is pmCopy
- The Style of the current Pen + The Style of the current Pen + Can be one of the following:
psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClear
Default is psSolid
- The Width in pixels of the current Pen + The Width in pixels of the current Pen + - The Data associated with the current Brush + The Data associated with the current Brush + - The Operating System Handle associated with the current Brush + The Operating System Handle associated with the current Brush + - The Colour to be used by the current Brush + The Colour to be used by the current Brush + @@ -2128,9 +2447,13 @@ Default is psSolid - The Style to be used by the current Brush - Enumerated type defined in TBrushStyle - + The Style to be used by the current Brush + + Enumerated type defined in TBrushStyle + + + + @@ -2147,7 +2470,9 @@ Default is psSolid - + + + @@ -2157,7 +2482,8 @@ Default is psSolid - The Brush to be used to Paint on the current Canvas + The Brush to be used to Paint on the current Canvas + A Brush is typically used to fill an enclosed area on theCanvas with one particular colour or coloured pattern @@ -2205,7 +2531,9 @@ Default is psSolid - + + + @@ -2214,7 +2542,9 @@ Default is psSolid - + + + @@ -2223,7 +2553,9 @@ Default is psSolid - + + + @@ -2232,7 +2564,9 @@ Default is psSolid - + + + @@ -2241,10 +2575,14 @@ Default is psSolid - + + + - Assign - copies a SourceBrush to itself + + Assign - copies a Source + Brush to itself Method: TBrush.Assign
Params: Source: Another brush
Returns: nothing
@@ -2253,42 +2591,59 @@ Default is psSolid
- Source - another Brush + + Source - another Brush + - Brush constructor - Inherits most of its properties from ancestor Classes + + Brush constructor + + Inherits most of its properties from ancestor Classes - Brush destructor - Inherits properties to remove Brush and frees Handle + + Brush destructor + + Inherits properties to remove Brush and frees Handle + - The BitMap associated with the current Brush - Reads or writes a flag to determine the current BitMap + The BitMap associated with the current Brush + + Reads or writes a flag to determine the current BitMap + - Operating System Handle for this Brush - Reads or writes flag to determine system Handle + Operating System Handle for this Brush + + Reads or writes flag to determine system Handle + - The Colour of the current Brush + The Colour of the current Brush + Reads or writes a flag to determine the Colour. Default is White - Style of the Brush + + Style of the Brush + Enumerated type - default Solid - + + + - The Data about the current Region on the Screen or Canvas + The Data about the current Region on the Screen or Canvas + At present the Region can only be rectangular; the ability to define it as a Polygon is not yet implemented @@ -2349,7 +2704,9 @@ Default is psSolid - + + + @@ -2358,7 +2715,9 @@ Default is psSolid - + + + @@ -2367,7 +2726,9 @@ Default is psSolid - + + + @@ -2376,24 +2737,32 @@ Default is psSolid - + + + - TRegion constructor + + TRegion constructor - TRegion destructor + + TRegion destructor - Assign - copies Source to itself + + Assign - copies Source to itself - + + + - Operating System Handle for this Region + Operating System Handle for this Region + HRGN THandle @@ -2406,10 +2775,24 @@ Default is psSolid Base class for dealing with Graphic images - The TGraphic class is an abstract base class for dealing with graphic images such as bitmaps, pixmaps, icons, and other image formats. It does not contain an actual area for displaying the image; this is provided by the descendant classes eg BitMap, Icon etc which have a Canvas element defined
LoadFromFile - Read the graphic from the file system. The old contents of the graphic are lost. If the file is not of the right format, an exception will be generated.
SaveToFile - Writes the graphic to disk in the file provided.
LoadFromStream - Like LoadFromFile except source is a stream (e.g. TBlobStream -).
SaveToStream - stream analogue of SaveToFile .
LoadFromClipboardFormat - Replaces the current image with the data provided. If the TGraphic - does not support that format it will generate an exception.
SaveToClipboardFormats - Converts the image to a clipboard format. If the image does not support being translated into a clipboard format it will generate an exception.
Height - The native, unstretched, height of the graphic.
Palette - Color palette of image. Zero if graphic doesn't need/use palettes.
Transparent - Some parts of the image are not opaque, ie the background can be seen through.
Width - The native, unstretched, width of the graphic.
OnChange - Called whenever the graphic changes
PaletteModified - Indicates in OnChange whether color palette has changed. Stays true until whoever is responsible for realizing this new palette (ex: TImage) sets it to False.
OnProgress - Generic progress indicator event. Propagates out to TPicture - and TImage OnProgress events.

+ The TGraphic class is an abstract base class for dealing with graphic images such as bitmaps, pixmaps, icons, and other image formats. It does not contain an actual area for displaying the image; this is provided by the descendant classes eg BitMap, Icon etc which have a Canvas element defined
+ LoadFromFile - Read the graphic from the file system. The old contents of the graphic are lost. If the file is not of the right format, an exception will be generated.
+ SaveToFile - Writes the graphic to disk in the file provided.
+ LoadFromStream - Like LoadFromFile except source is a stream (e.g. TBlobStream +).
+ SaveToStream - stream analogue of SaveToFile .
+ LoadFromClipboardFormat - Replaces the current image with the data provided. If the TGraphic + does not support that format it will generate an exception.
+ SaveToClipboardFormats - Converts the image to a clipboard format. If the image does not support being translated into a clipboard format it will generate an exception.
+ Height - The native, unstretched, height of the graphic.
+ Palette - Color palette of image. Zero if graphic doesn't need/use palettes.
+ Transparent - Some parts of the image are not opaque, ie the background can be seen through.
+ Width - The native, unstretched, width of the graphic.
+ OnChange - Called whenever the graphic changes
+ PaletteModified - Indicates in OnChange whether color palette has changed. Stays true until whoever is responsible for realizing this new palette (ex: TImage) sets it to False.
+ OnProgress - Generic progress indicator event. Propagates out to TPicture + and TImage OnProgress events.
+
As many of the methods and properties are virtual and/or abstract, it is the responsibility of the application programmer to supply suitable methods when implementing any descendant classes
@@ -2450,7 +2833,9 @@ Default is psSolid
- + + + @@ -2459,9 +2844,13 @@ Default is psSolid - + + + - + + + @@ -2470,7 +2859,9 @@ Default is psSolid - + + + @@ -2479,9 +2870,13 @@ Default is psSolid - + + + - + + + @@ -2490,7 +2885,9 @@ Default is psSolid - + + + @@ -2499,7 +2896,9 @@ Default is psSolid - + + + @@ -2508,7 +2907,9 @@ Default is psSolid - + + + @@ -2517,7 +2918,9 @@ Default is psSolid - + + + @@ -2526,7 +2929,9 @@ Default is psSolid - + + + @@ -2535,19 +2940,33 @@ Default is psSolid - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -2556,7 +2975,9 @@ Default is psSolid - + + + @@ -2565,7 +2986,9 @@ Default is psSolid - + + + @@ -2574,7 +2997,9 @@ Default is psSolid - + + + @@ -2583,7 +3008,9 @@ Default is psSolid - + + + @@ -2592,7 +3019,9 @@ Default is psSolid - + + + @@ -2601,7 +3030,9 @@ Default is psSolid - + + + @@ -2610,15 +3041,20 @@ Default is psSolid - + + + - TGraphic constructor - Virtual method, so recommend that a constructor be supplied to override this method in descendant classes + + TGraphic constructor + + Virtual method, so recommend that a constructor be supplied to override this method in descendant classes - LoadFromFile - Read the graphic from the file system. + + LoadFromFile - Read the graphic from the file system. LoadFromFile - Read the graphic from the file system.
The old contents of the graphic are lost.
If the file is not of the right format, an exception will be generated.
@@ -2630,8 +3066,10 @@ If the file is not of the right format, an exception will be generated.
- SaveToFile - Writes the graphic to disk in the file provided. - SaveToFile - Writes the graphic to disk in the file whose name is provided. + + SaveToFile - Writes the graphic to disk in the file provided. + + SaveToFile - Writes the graphic to disk in the file whose name is provided. @@ -2639,8 +3077,10 @@ If the file is not of the right format, an exception will be generated. - LoadFromStream -reads graphic data from a stream (e.g. TBlobStream ) - LoadFromStream + + LoadFromStream -reads graphic data from a stream (e.g. TBlobStream ) + + LoadFromStream - Like LoadFromFile except source is a stream (e.g. TBlobStream) @@ -2650,8 +3090,10 @@ If the file is not of the right format, an exception will be generated. - SaveToStream - write graphic data to a stream - SaveToStream - write graphic data to a stream + + SaveToStream - write graphic data to a stream + + SaveToStream - write graphic data to a stream @@ -2659,47 +3101,65 @@ If the file is not of the right format, an exception will be generated. - + + LoadFromMimeStream - reads graphic data from a MIME stream - + + + - + + + - + Load the graphic data from a Lazarus Resource (eg a *.lrs file) - + + + - LoadFromClipboardFormat - Replace the current image with the contents of the clipboard - LoadFromClipboardFormat - Replaces the current image with the data provided from the clipboard. + + LoadFromClipboardFormat - Replace the current image with the contents of the clipboard + + LoadFromClipboardFormat - Replaces the current image with the data provided from the clipboard. If the TGraphic does not support that format it will generate an exception. - + + + - + Load the data from the clipboard using the format type specified by ClipboardType and the format identifier FormatID + - + + + - + + + - SaveToClipboardFormats - Converts the image to a clipboard format - SaveToClipboardFormats - Converts the image to a clipboard format + + SaveToClipboardFormats - Converts the image to a clipboard format + + SaveToClipboardFormats - Converts the image to a clipboard format If the image does not support being translated into a clipboard format it will generate an exception @@ -2708,33 +3168,42 @@ If the file is not of the right format, an exception will be generated. - + Saves the data to a clipboard of Type ClipboardType using the format FormatID + - + + + - + + + - + Gets a list of the MIME types that are supported - + + + - + Finds the default MIME type - + + + @@ -2743,7 +3212,9 @@ If the file is not of the right format, an exception will be generated. - + + + @@ -2752,9 +3223,13 @@ If the file is not of the right format, an exception will be generated. - + + + - + + + @@ -2763,9 +3238,13 @@ If the file is not of the right format, an exception will be generated. - + + + - + + + @@ -2774,7 +3253,9 @@ If the file is not of the right format, an exception will be generated. - + + + @@ -2783,54 +3264,61 @@ If the file is not of the right format, an exception will be generated. - + + + - + Is this an empty (blank) graphic? - Height - The native, unstretched, height of the graphic. + + Height - The native, unstretched, height of the graphic. - + Has the graphic been modified? - + Event handler for any change in the data - + Event handler for monitoring progress of the graphic - Palette - Color palette of image - Palette - Color palette of image. Zero if graphic doesn't need/use palettes + + Palette - Color palette of image + + Palette - Color palette of image. Zero if graphic doesn't need/use palettes - + Has the palette of colours been modified? - Transparent - Some parts of the image are not opaque. ie the background + + Transparent - Some parts of the image are not opaque. ie the background can be seen through - Width - The native, unstretched, width of the graphic. + + Width - The native, unstretched, width of the graphic. @@ -2840,8 +3328,10 @@ If the file is not of the right format, an exception will be generated. - TPicture is a TGraphic container, used in place of a TGraphic if the graphic can be of any TGraphic class. - TPicture + + TPicture is a TGraphic container, used in place of a TGraphic if the graphic can be of any TGraphic class. + + TPicture is a TGraphic container. It is used in place of a TGraphic if the graphic can be of any TGraphic @@ -2853,13 +3343,36 @@ It is not a direct descendant of TGraphic listed in the Inheritance chart, but it contains a property Graphic , of type TGraphic -, so can contain all the properties of a TGraphic

+, so can contain all the properties of a TGraphic +
+
Defines many private methods for getting and storing various sorts of images such as bitmaps, pixmaps, icons, PNGs etc
-It does not itself contain a defined area for displaying the image, but this is supplied by the descendant classes such as BitMap, PixMap, PNG or Icon, which define a Canvas property.

LoadFromFile and SaveToFile are polymorphic. For example, if the TPicture is holding an Icon, you can LoadFromFile a bitmap file, where if the class is TIcon you could only read .ICO files.

LoadFromFile - Reads a picture from disk. The TGraphic class created is determined by the file extension of the file. If the file extension is not recognized an exception is generated.
SaveToFile - Writes the picture to disk.
LoadFromClipboardFormat - ToDo: Reads the picture from the handle provided in the given clipboard format. If the format is not supported, an exception is generated.
SaveToClipboardFormats - ToDo: Allocates a global handle and writes the picture in its native clipboard format (CF_BITMAP for bitmaps, CF_METAFILE for metafiles, etc.). Formats will contain the formats written. Returns the number of clipboard items written to the array pointed to by Formats and Datas or would be written if either Formats or Datas are nil.
SupportsClipboardFormat - Returns true if the given clipboard format is supported by LoadFromClipboardFormat +It does not itself contain a defined area for displaying the image, but this is supplied by the descendant classes such as BitMap, PixMap, PNG or Icon, which define a Canvas property.
+
+ LoadFromFile and SaveToFile are polymorphic. For example, if the TPicture is holding an Icon, you can LoadFromFile a bitmap file, where if the class is TIcon you could only read .ICO files.
+
+ LoadFromFile - Reads a picture from disk. The TGraphic class created is determined by the file extension of the file. If the file extension is not recognized an exception is generated.
+ SaveToFile - Writes the picture to disk.
+ LoadFromClipboardFormat - ToDo: Reads the picture from the handle provided in the given clipboard format. If the format is not supported, an exception is generated.
+ SaveToClipboardFormats - ToDo: Allocates a global handle and writes the picture in its native clipboard format (CF_BITMAP for bitmaps, CF_METAFILE for metafiles, etc.). Formats will contain the formats written. Returns the number of clipboard items written to the array pointed to by Formats and Datas or would be written if either Formats or Datas are nil.
+ SupportsClipboardFormat - Returns true if the given clipboard format is supported by LoadFromClipboardFormat -.
Assign - Copies the contents of the given TPicture. Used most often in the implementation of TPicture properties.
RegisterFileFormat - Register a new TGraphic class for use in LoadFromFile.
RegisterClipboardFormat - Registers a new TGraphic class for use in LoadFromClipboardFormat.
UnRegisterGraphicClass - Removes all references to the specified TGraphic class and all its descendants from the file format and clipboard format internal lists.
Height - The native, unstretched, height of the picture.
Width - The native, unstretched, width of the picture.
Graphic - The TGraphic object contained by the TPicture
Bitmap - Returns a bitmap. If the contents is not already a bitmap, the contents are thrown away and a blank bitmap is returned.
Pixmap - Returns a pixmap. If the contents is not already a pixmap, the contents are thrown away and a blank pixmap is returned.
PNG - Returns a png. If the contents is not already a png, the contents are thrown away and a blank png (TPortableNetworkGraphic) is returned.
PNM - Returns a pnm. If the contents is not already a pnm, the contents are thrown away and a blank pnm (TPortableAnyMapGraphic) is returned.
+.
+ Assign - Copies the contents of the given TPicture. Used most often in the implementation of TPicture properties.
+ RegisterFileFormat - Register a new TGraphic class for use in LoadFromFile.
+ RegisterClipboardFormat - Registers a new TGraphic class for use in LoadFromClipboardFormat.
+ UnRegisterGraphicClass - Removes all references to the specified TGraphic class and all its descendants from the file format and clipboard format internal lists.
+ Height - The native, unstretched, height of the picture.
+ Width - The native, unstretched, width of the picture.
+ Graphic - The TGraphic object contained by the TPicture +
+ Bitmap - Returns a bitmap. If the contents is not already a bitmap, the contents are thrown away and a blank bitmap is returned.
+ Pixmap - Returns a pixmap. If the contents is not already a pixmap, the contents are thrown away and a blank pixmap is returned.
+ PNG - Returns a png. If the contents is not already a png, the contents are thrown away and a blank png (TPortableNetworkGraphic) is returned.
+ PNM - Returns a pnm. If the contents is not already a pnm, the contents are thrown away and a blank pnm (TPortableAnyMapGraphic) is returned.
+
@@ -2887,7 +3400,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2896,7 +3411,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2905,7 +3422,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2914,7 +3433,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2923,7 +3444,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2932,7 +3455,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2941,7 +3466,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2950,7 +3477,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2959,7 +3488,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2968,7 +3499,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2977,7 +3510,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2986,7 +3521,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -2995,7 +3532,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3004,7 +3543,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3013,7 +3554,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3022,7 +3565,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3031,7 +3576,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3040,32 +3587,50 @@ It does not itself contain a defined area for displaying the image, but this is - + + + - + + + - + + + - + + + - + + + - + + + - + + + - TPicture constructor + + TPicture constructor - TPicture destructor + + TPicture destructor Any destructor method defined here will override destructors defined in ancestor classes - LoadFromFile - Reads a picture from disk - LoadFromFile - Reads a picture from disk. The TGraphic class created is determined by the file extension of the file. + + LoadFromFile - Reads a picture from disk + + LoadFromFile - Reads a picture from disk. The TGraphic class created is determined by the file extension of the file. If the file extension is not recognized an exception is generated @@ -3074,7 +3639,8 @@ It does not itself contain a defined area for displaying the image, but this is - SaveToFile - Writes the picture to disk + + SaveToFile - Writes the picture to disk @@ -3085,7 +3651,8 @@ It does not itself contain a defined area for displaying the image, but this is LoadFromClipboardFormat - LoadFromClipboardFormat - ToDo: Reads the picture from the handle provided in the given clipboard format. + + LoadFromClipboardFormat - ToDo: Reads the picture from the handle provided in the given clipboard format. If the format is not supported, an exception is generated @@ -3094,19 +3661,26 @@ It does not itself contain a defined area for displaying the image, but this is - + Reads the picture from a clipboard of type ClipboardType using the format FormatID + - + + + - + + + - SaveToClipboardFormats - Allocates a global handle and writes the picture in its native clipboard format - SaveToClipboardFormats - ToDo: Allocates a global handle and writes the picture in its native clipboard format (CF_BITMAP for bitmaps, CF_METAFILE for metafiles, etc.). Formats will contain the formats written. Returns the number of clipboard items written to the array pointed to by Formats and Datas or would be written if either Formats or Datas are nil. + + SaveToClipboardFormats - Allocates a global handle and writes the picture in its native clipboard format + + SaveToClipboardFormats - ToDo: Allocates a global handle and writes the picture in its native clipboard format (CF_BITMAP for bitmaps, CF_METAFILE for metafiles, etc.). Formats will contain the formats written. Returns the number of clipboard items written to the array pointed to by Formats and Datas or would be written if either Formats or Datas are nil. @@ -3114,7 +3688,9 @@ It does not itself contain a defined area for displaying the image, but this is - SupportsClipboardFormat - Returns true if the given clipboard format is supported by LoadFromClipboardFormat + + SupportsClipboardFormat - Returns true if the given clipboard format is supported by LoadFromClipboardFormat + @@ -3126,82 +3702,118 @@ It does not itself contain a defined area for displaying the image, but this is - Assign - Copies the contents of the given TPicture - Assign - Copies the contents of the given TPicture. Used most often in the implementation of TPicture properties. + + Assign - Copies the contents of the given TPicture + + + Assign - Copies the contents of the given TPicture. Used most often in the implementation of TPicture properties. - + + + - RegisterFileFormat - Register a new TGraphic class for use in LoadFromFile + + RegisterFileFormat - Register a new TGraphic class for use in LoadFromFile + - + + + - + + + - + + + - RegisterClipboardFormat - Registers a new TGraphic class for use in LoadFromClipboardFormat + + RegisterClipboardFormat - Registers a new TGraphic class for use in LoadFromClipboardFormat + - + + + - + + + - UnRegisterGraphicClass - Removes all references to the specified TGraphic - UnRegisterGraphicClass + + UnRegisterGraphicClass - Removes all references to the specified TGraphic + + + UnRegisterGraphicClass - Removes all references to the specified TGraphic class and all its descendants from the file format and clipboard format internal lists - + + + - Clear - removes the graphic + + Clear - removes the graphic - Bitmap - Returns a bitmap - Bitmap - Returns a bitmap. If the contents is not already a bitmap, the contents are thrown away and a blank bitmap is returned + + Bitmap - Returns a bitmap + + Bitmap - Returns a bitmap. If the contents is not already a bitmap, the contents are thrown away and a blank bitmap is returned - Pixmap - Returns a pixmap - Pixmap - Returns a pixmap. If the contents is not already a pixmap, the contents are thrown away and a blank pixmap is returned + + Pixmap - Returns a pixmap + + Pixmap - Returns a pixmap. If the contents is not already a pixmap, the contents are thrown away and a blank pixmap is returned - PNG - Returns a png - PNG - Returns a png. If the contents is not already a png, the contents are thrown away and a blank png (TPortableNetworkGraphic) is returned + + PNG - Returns a png + + PNG - Returns a png. If the contents is not already a png, the contents are thrown away and a blank png (TPortableNetworkGraphic) is returned - Icon contained within the picture + + Icon contained within the picture - Graphic - The TGraphic object contained by the TPicture + + Graphic - The TGraphic object contained by the TPicture + - Height - The native, unstretched, height of the picture + + Height - The native, unstretched, height of the picture - Width - The native, unstretched, width of the picture + + Width - The native, unstretched, width of the picture - + Event handler for any change in the picture - + Event handler for monitoring progress in drawing the picture @@ -3221,8 +3833,10 @@ It does not itself contain a defined area for displaying the image, but this is - TCanvas - where most of the drawing is performed - TCanvas is a class that defines a very large number of drawing methods including methods for pen and colour selection, producing shapes and filling them, setting or clearing individual pixels, and producing graphic text. + + TCanvas - where most of the drawing is performed + + TCanvas is a class that defines a very large number of drawing methods including methods for pen and colour selection, producing shapes and filling them, setting or clearing individual pixels, and producing graphic text. @@ -3340,7 +3954,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3349,7 +3965,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3358,7 +3976,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3367,7 +3987,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3376,7 +3998,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3385,7 +4009,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3394,7 +4020,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3403,7 +4031,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3412,7 +4042,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3421,7 +4053,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3430,7 +4064,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3439,7 +4075,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3448,7 +4086,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3457,7 +4097,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3466,7 +4108,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3475,11 +4119,17 @@ It does not itself contain a defined area for displaying the image, but this is - + + + - + + + - + + + @@ -3530,7 +4180,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3546,7 +4198,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3555,7 +4209,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3564,7 +4220,9 @@ It does not itself contain a defined area for displaying the image, but this is - + + + @@ -3573,20 +4231,31 @@ It does not itself contain a defined area for displaying the image, but this is - + + + - + + + - + + + - Canvas constructor - Canvas constructor: creates a new instance of the class TCanvas + + Canvas constructor + + Canvas constructor: creates a new instance of the class TCanvas + - Canvas destructor - Canvas destructor: removes this instance of TCanvas and makes its resources available + + Canvas destructor + + Canvas destructor: removes this instance of TCanvas and makes its resources available @@ -3630,22 +4299,35 @@ It does not itself contain a defined area for displaying the image, but this is Params: ALeft, ATop, ARight, ABottom, sx, sy, ex, ey
-Returns: Nothing

+Returns: Nothing
+
Use Arc to draw an elliptically curved line with the current Pen. The values sx,sy, and ex,ey represent the starting and ending radial-points between which the Arc is drawn.
- + + + - + + + - + + + - + + + - + + + - + + + Use Arc to draw an elliptically curved line with the current Pen @@ -3653,7 +4335,8 @@ Use Arc to draw an elliptically curved line with the current Pen. The values sx, Params: ALeft, ATop, ARight, ABottom, angle1, angle2
-Returns: Nothing

+Returns: Nothing
+
Use Arc to draw an elliptically curved line with the current Pen.
@@ -3668,21 +4351,37 @@ Positive values of Angle Zero degrees is at the 3 o'clock position.
- + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + @@ -3691,30 +4390,60 @@ Zero degrees is at the 3 o'clock position. - + + + - + + + - + + + - - - - - - - - - - - - - - - + + + - Chord draws a filled Chord-shape on the canvas + +

Params: x1, y1, x2, y2, StartAngle16Deg, EndAngle16Deg

+

Use Chord to draw a filled Chord-shape on the canvas.

+

The angles angle1 and angle2 are 1/16th of a degree. For example, a full circle equals 5760(16*360).

+

Positive values of Angle and AngleLength mean counter-clockwise while negative values mean clockwise direction. Zero degrees is at the 3 o'clock position.

+

Alternatively the starting and ending points may be specified as radial points (sx, sy, ex, ey)

+
+ Draw a filled-chord shape starting and finishing at the specified angular positions on the circumference +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + Chord draws a filled Chord-shape on the canvas Method: TCanvas.Chord
@@ -3723,7 +4452,8 @@ Params: x1, y1, x2, y2, StartAngle16Deg, EndAngle16Deg
-Returns: Nothing

+Returns: Nothing
+
@@ -3753,84 +4483,130 @@ Positive values of Angle Zero degrees is at the 3 o'clock position.
- + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + Copies the rectangle found at Source in SrcCanvas to the destination position Dest + - + + + - + + + - + + + - + Draw a graphic stored in SrcGraphic at the point X, Y - + + + - + + + - + + + - + Draws the Graphic stored at SrcGraphic, stretched to fit the dimensions of the destination

DestRec

+
- + + + - + + + - + + + - Ellipse draws a filled circle or ellipse on the canvas + + Ellipse draws a filled circle or ellipse on the canvas Method: TCanvas.Ellipse
Params: X1, Y1, X2, Y2
-Returns: Nothing

+Returns: Nothing
+
Use Ellipse to draw a filled circle or ellipse on the canvas.
- + + + - + + + - + + + - + + + @@ -3839,7 +4615,9 @@ Use Ellipse - + + + @@ -3848,13 +4626,21 @@ Use Ellipse - + + + - + + + - + + + - + + + @@ -3863,13 +4649,21 @@ Use Ellipse - + + + - + + + - + + + - + + + @@ -3878,11 +4672,17 @@ Use Ellipse - + + + - + + + - + + + @@ -3891,7 +4691,9 @@ Use Ellipse - + + + @@ -3900,13 +4702,21 @@ Use Ellipse - + + + - + + + - + + + - + + + @@ -3915,7 +4725,9 @@ Use Ellipse - + + + @@ -3924,60 +4736,110 @@ Use Ellipse - + + + - + + + - + + + - + + + - Draws a Line from X1, Y1 to X2, Y2 + Draws a Line from X1, Y1 to X2, Y2 + - + + + - + + + - + + + - + + + - LineTo draws a line from the current pen position to the new position: X1, Y1 + + LineTo draws a line from the current pen position to the new position: X1, Y1 + - + + + - + + + Moves cursor to new position X1, Y1 without drawing anything - - - - - - + + - - - - - - - - - - - + + + - RadialPie uses Pie to draw a filled pie-shaped wedge on the canvas + + + + + RadialPie - draw a filled pie-shaped wedge on the canvas with specified start and end coordinates, and starting and ending angular positions + +

Params: x1, y1, x2, y2, StartAngle16Deg, EndAngle16Deg: Integer

+

Use Pie to draw a filled pie-shaped wedge on the canvas.

+

The angles StartAngle16Deg and EndAngle16Deg are 1/16th of a degree. For example, a full circle equals 5760 (16*360).

+

Positive values of Angle and AngleLength mean counter-clockwise while negative values mean clockwise direction. Zero degrees is at the 3 o'clock position.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + RadialPie uses Pie to draw a filled pie-shaped wedge on the canvas Method: TCanvas.RadialPie
@@ -3988,7 +4850,8 @@ Params: x1, y1, x2, y2, StartAngle16Deg, EndAngle16Deg: Integer
-Returns: Nothing

+Returns: Nothing
+
@@ -4028,62 +4891,106 @@ Positive values of Angle and AngleLength mean counter-clockwise while negative v Zero degrees is at the 3 o'clock position
- + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - Pie draws a filled Pie-shaped wedge on the canvas + + Pie draws a filled Pie-shaped wedge on the canvas Method: TCanvas.Pie
Params: EllipseX1, EllipseY1, EllipseX2, EllipseY2, StartX, StartY, EndX, EndY
-Returns: Nothing

+Returns: Nothing
+
Use Pie - to draw a filled Pie-shaped wedge on the canvas. The pie is part of an ellipse between the points EllipseX1, EllipseY1, EllipseX2, EllipseY2. The values StartX, StartY and EndX, EndY represent the starting and ending radial-points between which the Bounding-Arc is drawn.
+ to draw a filled Pie-shaped wedge on the canvas. The pie is part of an ellipse between the points EllipseX1, EllipseY1, EllipseX2, EllipseY2. The values StartX, StartY and EndX, EndY represent the starting and ending radial-points between which the Bounding-Arc is drawn.
+
- + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - Polybezier draws cubic Bezier curves + + Polybezier draws cubic Bezier curves Method: TCanvas.PolyBezier
@@ -4092,7 +4999,8 @@ Params: Points, Filled, Continous
-Returns: Boolean

+Returns: Boolean
+
@@ -4107,26 +5015,35 @@ The first curve is drawn from the first point to the fourth point with the secon -If the Continuous flag is TRUE then each subsequent curve requires three more points, using the end-point of the previous Curve as its starting point, the first and second points being used as its control points, and the third point its end-point.

+If the Continuous flag is TRUE then each subsequent curve requires three more points, using the end-point of the previous Curve as its starting point, the first and second points being used as its control points, and the third point its end-point.
+
-If the continous flag is set to FALSE, then each subsequent Curve requires 4 additional points, which are used exactly as in the first curve.

+If the continous flag is set to FALSE, then each subsequent Curve requires 4 additional points, which are used exactly as in the first curve.
+
-Any additonal points which do not add up to a full bezier(4 for Continuous, 3 otherwise) are ingored. There must be at least 4 points for an drawing to occur.

+Any additonal points which do not add up to a full bezier(4 for Continuous, 3 otherwise) are ingored. There must be at least 4 points for an drawing to occur.
+
If the Filled Flag is set to TRUE then the resulting Poly-Bezier will be drawn as a Polygon.
- + + + - + + + - + + + @@ -4135,24 +5052,39 @@ If the Filled Flag is set to TRUE then the resulting Poly-Bezier will be drawn a - + + + - + + + - + + + - + + + - + + + - + + + - + + + - Polygon draws a closed, many-sided shape on the canvas, using the value of Pen + + Polygon draws a closed, many-sided shape on the canvas, using the value of Pen Method: TCanvas.Polygon
@@ -4165,7 +5097,8 @@ Params: Points: array of TPoint; Winding: Boolean = False; StartIndex: Integer -Returns: Nothing

+Returns: Nothing
+
@@ -4191,7 +5124,8 @@ Use Polygon -.

+.
+
@@ -4202,7 +5136,8 @@ The Points - parameter is an array of points that give the vertices of the polygon.
Winding + parameter is an array of points that give the vertices of the polygon.
+ Winding @@ -4239,12 +5174,14 @@ When Winding - uses the even-odd (alternative) fill algorithm.
StartIndex + uses the even-odd (alternative) fill algorithm.
+ StartIndex - gives the index of the first point in the array to use. All points before this are ignored.
NumPts + gives the index of the first point in the array to use. All points before this are ignored.
+ NumPts @@ -4293,10 +5230,14 @@ To draw a polygon on the canvas, without filling it, use the Polyline method, specifying the first point a second time at the end.
- + + +
- + + + @@ -4305,20 +5246,31 @@ To draw a polygon on the canvas, without filling it, use the Polyline - + + + - + + + - + + + - + + + - + + + - Polyline connects a set of points on the canvas + + Polyline connects a set of points on the canvas Method: TCanvas.Polyline
@@ -4333,7 +5285,8 @@ Params: Points: array of TPoint; StartIndex: Integer = 0; NumPts: Integer = -1 -Returns: Nothing

+Returns: Nothing
+
@@ -4371,13 +5324,15 @@ The Points - parameter is an array of points to be connected.
StartIndex + parameter is an array of points to be connected.
+ StartIndex - identifies the first point in the array to use.
NumPts + identifies the first point in the array to use.
+ NumPts @@ -4445,7 +5400,9 @@ Calling the MoveTo
- + + + @@ -4454,13 +5411,21 @@ Calling the MoveTo - + + + - + + + - + + + - + + + @@ -4469,7 +5434,9 @@ Calling the MoveTo - + + + @@ -4478,17 +5445,29 @@ Calling the MoveTo - + + + - + + + - + + + - + + + - + + + - + + + @@ -4497,21 +5476,33 @@ Calling the MoveTo - + + + - + + + - + + + Writes the Text string at the position X, Y on the canvas and leaves the pen at the end of the text - + + + - + + + - + + + @@ -4520,29 +5511,52 @@ Calling the MoveTo - - - - - - - - - - Writes Text string within a specified rectangle, according to predefined Style - Writes Text string within a specified rectangle, according to predefined Style
-The boundaries of the rectangle are specified in ARect
X, Y specify the starting point for writing the Text within the rectangle
TextStyle determines whether the text is justified, centered, word-wrapped etc. If the Style argument is omitted, defaults are assumed
+ + - + + + - + + + - + + + + + + Writes Text string within a specified rectangle, according to predefined Style + + Writes Text string within a specified rectangle, according to predefined Style +
+The boundaries of the rectangle are specified in ARect +
+ X, Y specify the starting point for writing the Text within the rectangle
+ TextStyle determines whether the text is justified, centered, word-wrapped etc. If the Style argument is omitted, defaults are assumed
+
- + + + - + + + + + + + + + + + + + + + @@ -4551,9 +5565,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4562,9 +5580,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4573,9 +5595,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4584,7 +5610,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4593,9 +5621,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4615,9 +5647,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4738,7 +5774,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4746,13 +5784,21 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + - + + + - + + + @@ -4766,9 +5812,13 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + - + + + @@ -4834,7 +5884,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4843,7 +5895,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4852,7 +5906,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4874,7 +5930,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4883,7 +5941,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4903,7 +5963,9 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- + + + @@ -4912,12 +5974,16 @@ The boundaries of the rectangle are specified in ARect
X, Y sp
- TBitmap is the data of an image, and can be loaded from a file, stream or resource in .bmp or .xpm format - TBitmap is the data of an image. The image can be loaded from a file, stream or resource in .bmp (windows bitmap format) or .xpm (XPixMap format)
+ + TBitmap is the data of an image, and can be loaded from a file, stream or resource in .bmp or .xpm format + + TBitmap is the data of an image. The image can be loaded from a file, stream or resource in .bmp (windows bitmap format) or .xpm (XPixMap format)
The loading routine automatically recognizes the format, so it is also used to load the images from Delphi form streams (e.g. .dfm files).
When the handle is created, it is up to the interface (gtk, win32, ...) to convert it automatically to the best internal format. That is why the Handle is interface dependent.
To access the raw data, see TLazIntfImage in IntfGraphics.pas
- + + +
@@ -4976,7 +6042,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -4992,7 +6060,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5001,7 +6071,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5010,7 +6082,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5019,7 +6093,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5028,7 +6104,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5037,7 +6115,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5046,7 +6126,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5062,7 +6144,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5071,7 +6155,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5080,9 +6166,13 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - + + + @@ -5091,7 +6181,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5100,7 +6192,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5109,7 +6203,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5118,7 +6214,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5127,7 +6225,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5136,7 +6236,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5166,7 +6268,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5182,7 +6286,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5191,9 +6297,13 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - + + + @@ -5202,7 +6312,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5211,7 +6323,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5220,7 +6334,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5229,7 +6345,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5238,7 +6356,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5247,9 +6367,13 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - + + + @@ -5258,11 +6382,17 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - + + + - + + + @@ -5271,7 +6401,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5280,7 +6412,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5289,7 +6423,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5298,24 +6434,34 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - BitMap constructor - BitMap constructor. The supplied code can override the definition from ancestor classes + + BitMap constructor + + BitMap constructor. The supplied code can override the definition from ancestor classes - BitMap destructor - BitMap destructor. The supplied code can override the method defined for ancestor classes + + BitMap destructor + + BitMap destructor. The supplied code can override the method defined for ancestor classes - Assign: find out about the Source of the call. - Assign: find out about the Source of the call. If the BitMap data are already in use, the data are shared; if not, a new BitMap is produced + + Assign: find out about the Source of the call. + + Assign: find out about the Source of the call. If the BitMap data are already in use, the data are shared; if not, a new BitMap is produced - + + + @@ -5331,7 +6477,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5340,7 +6488,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5349,7 +6499,9 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + @@ -5358,17 +6510,27 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - - - - - - - - LoadFromDevice: obtain BitMap data from a device with Handle DC + + - + + + + + + + + + + + LoadFromDevice: obtain BitMap data from a device with Handle DC + + + + + + @@ -5377,24 +6539,38 @@ To access the raw data, see TLazIntfImage in IntfGraphics.pas - + + + - + + + - LoadFromStream: obtains BitMap data from a Stream + + LoadFromStream: obtains BitMap data from a Stream + - + + + - LoadFromLazarusResource: obtain data from a valid Lazarus Resource Stream - LoadFromLazarusResource: obtain data from a valid Lazarus Resource Stream
+ + LoadFromLazarusResource: obtain data from a valid Lazarus Resource Stream + + LoadFromLazarusResource: obtain data from a valid Lazarus Resource Stream
Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream to acquire the data
- + + +
- + + + @@ -5402,9 +6578,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5412,9 +6592,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5423,9 +6607,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5434,7 +6622,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5443,7 +6633,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5452,13 +6644,18 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - LoadFromXPMFile: obtain data from file in native PixMap format + + LoadFromXPMFile: obtain data from file in native PixMap format - + + + @@ -5467,7 +6664,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5476,7 +6675,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5485,11 +6686,17 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + - + + + @@ -5498,9 +6705,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5509,7 +6720,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5518,7 +6731,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5527,9 +6742,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5538,9 +6757,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5549,7 +6772,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5558,7 +6783,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5567,13 +6794,21 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + - + + + - + + + @@ -5582,11 +6817,17 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + - + + + @@ -5595,7 +6836,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5646,33 +6889,43 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - PixMap - a class derived from TBitMap , with wrapper to deal specifically with PixMaps (ie using 'XPM' format) - PixMap + + PixMap - a class derived from TBitMap , with wrapper to deal specifically with PixMaps (ie using 'XPM' format) + + PixMap - Checks that specified resources (PixMap image, File for storage, Stream for writing) are of correct type and format, organises saving and writing - LazarusResourceTypeValid - checks that specified resource has correct format + + LazarusResourceTypeValid - checks that specified resource has correct format Returns True if resource type is 'XPM' - + + + - WriteStream - writes PixMap data to specified stream + + WriteStream - writes PixMap data to specified stream - + + + - True if size of data in stream has been specified + + True if size of data in stream has been specified - GetDefaultFPReader - obtains the correct tool + + GetDefaultFPReader - obtains the correct tool @@ -5680,7 +6933,8 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - GetDefaultFPWriter - obtains the correct tool + + GetDefaultFPWriter - obtains the correct tool @@ -5701,7 +6955,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5710,9 +6966,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5721,9 +6981,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5732,9 +6996,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5743,7 +7011,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5752,7 +7022,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5761,9 +7033,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5772,11 +7048,17 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + - + + + @@ -5785,9 +7067,13 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - + + + @@ -5796,7 +7082,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5812,7 +7100,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5821,7 +7111,9 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + @@ -5830,11 +7122,15 @@ Checks for the presence of a valid Lazarus Resource, then uses LoadFromStream - + + + - TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension - TIcon + + TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension + + TIcon reads and writes .ICO file format.
A .ico file typically contains several versions of the same image.
@@ -5859,7 +7155,9 @@ Writing is not (yet) implemented.
- + + + @@ -5868,7 +7166,9 @@ Writing is not (yet) implemented. - + + + @@ -5877,23 +7177,31 @@ Writing is not (yet) implemented. - + + + - Bitmaps - the list of alternative bitmaps (of various sizes) + + Bitmaps - the list of alternative bitmaps (of various sizes) - TIcon destructor - TIcon destructor. Method can override the destructor defined in ancestor classes + + TIcon destructor + + TIcon destructor. Method can override the destructor defined in ancestor classes Add a bitmap to the current list - Note that Ownership passes to TIcon + Note that Ownership passes to TIcon + - + + + @@ -5902,9 +7210,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5913,9 +7225,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5924,9 +7240,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5935,9 +7255,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5946,9 +7270,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5957,9 +7285,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -5967,7 +7299,9 @@ Writing is not (yet) implemented. - + + + @@ -5976,11 +7310,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -5989,11 +7329,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6002,9 +7348,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6013,9 +7363,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6024,9 +7378,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6035,9 +7393,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6046,7 +7408,9 @@ Writing is not (yet) implemented. - + + + @@ -6055,9 +7419,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6066,9 +7434,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6077,9 +7449,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6088,13 +7464,21 @@ Writing is not (yet) implemented. - + + + - + + + - + + + - + + + @@ -6103,9 +7487,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6114,9 +7502,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6125,7 +7517,9 @@ Writing is not (yet) implemented. - + + + @@ -6134,11 +7528,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6147,11 +7547,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6160,7 +7566,9 @@ Writing is not (yet) implemented. - + + + @@ -6169,9 +7577,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6180,9 +7592,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6191,11 +7607,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6204,9 +7626,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6215,11 +7641,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6228,9 +7660,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6239,9 +7675,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6250,9 +7690,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6261,9 +7705,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6271,11 +7719,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6283,11 +7737,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6308,9 +7768,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6319,9 +7783,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6330,9 +7798,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6341,9 +7813,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6352,9 +7828,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6363,9 +7843,13 @@ Writing is not (yet) implemented. - + + + - + + + @@ -6374,11 +7858,17 @@ Writing is not (yet) implemented. - + + + - + + + - + + + @@ -6387,15 +7877,25 @@ Writing is not (yet) implemented. - + + + - + + + - + + + - + + + - + + + @@ -6433,6 +7933,42 @@ Writing is not (yet) implemented. + + Check that the Resource specified for reading or writing is a valid type - result True if it is + + + The Resource type which is to be checked + + + Load the graphic data from a resource identified by the name ResName with the Handle 'Instance' + + + Load graphic data from a resource identified by the integer identifier ResID + + + Loads picture from a named data stream with a specified file extension + + + Finds a graphic class with the named file extension Ext, returning an exception if not found + + + + Jpeg - returns a JPEG image + +

+ Jpeg - returns a JPEG image

+

If the contents is not already a JPEG image, the contents are thrown away and a blank JPEG is returned

+
+
+ + + PNM - a PortableAnyMapGraphic image + +

+ PNM - a PortableAnyMapGraphic image

+

Reads a PNM image. If it is not a valid PNM image, the contents are thrown away and a blank PNM is generated

+
+