diff --git a/docs/xml/lcl/graphics.xml b/docs/xml/lcl/graphics.xml index daa3bb4f85..f637ed12c7 100644 --- a/docs/xml/lcl/graphics.xml +++ b/docs/xml/lcl/graphics.xml @@ -257,6 +257,7 @@ Default Data for any new + Font @@ -2082,8 +2083,10 @@ Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor. Assign - copies the + LogFont or + Source settings to itself

Method: TFont.Assign @@ -2176,6 +2179,7 @@ Copies the logfont or source settings to itself Colour of the current + Font Default is the same as the text used for the rest of the Window @@ -2190,6 +2194,7 @@ Copies the logfont or source settings to itself Name of the + Font @@ -2202,6 +2207,7 @@ Copies the logfont or source settings to itself + Font Fixed or variable pitch, or Default
@@ -2225,6 +2231,7 @@ Reads or writes a flag to determine pitch type
+ Font Bold, Italic, Strike out, Underline
@@ -2614,6 +2621,7 @@ Default is psSolid
+ Source Brush to itself Method: TBrush.Assign
@@ -2631,6 +2639,7 @@ Default is psSolid
+ Brush @@ -2652,12 +2661,14 @@ Default is psSolid
+ Brush and frees + Handle @@ -2686,6 +2697,7 @@ Default is psSolid Style of the + Brush Enumerated type - default Solid @@ -2813,6 +2825,7 @@ Default is psSolid + Source to itself @@ -3103,6 +3116,7 @@ Default is psSolid + override this method in descendant classes @@ -3134,6 +3148,7 @@ 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 @@ -3143,6 +3158,7 @@ If the file is not of the right format, an exception will be generated. + LoadFromFile except source is a stream (e.g. @@ -3150,6 +3166,7 @@ If the file is not of the right format, an exception will be generated. + TBlobStream) @@ -3401,19 +3418,25 @@ 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 is a + TGraphic container. It is used in place of a + TGraphic if the graphic can be of any + TGraphic class.

It is not a direct descendant of TGraphic, so you will not see TGraphic listed in the Inheritance chart, but it contains a property Graphic, of type TGraphic, so can contain all the properties of a TGraphic

@@ -3422,19 +3445,25 @@ If the file is not of the right format, an exception will be generated.

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

@@ -3759,6 +3800,7 @@ If the file is not of the right format, an exception will be generated. + TGraphic class created is determined by the file extension of the file. If the file extension is not recognized an exception is generated @@ -3825,6 +3867,7 @@ If the file is not of the right format, an exception will be generated. + LoadFromClipboardFormat @@ -3841,6 +3884,7 @@ If the file is not of the right format, an exception will be generated. Assign - Copies the contents of the given + TPicture @@ -3850,6 +3894,7 @@ If the file is not of the right format, an exception will be generated. + TPicture. Used most often in the implementation of TPicture properties. @@ -3862,8 +3907,10 @@ If the file is not of the right format, an exception will be generated. RegisterFileFormat - Register a new + TGraphic class for use in + LoadFromFile @@ -3884,8 +3931,10 @@ If the file is not of the right format, an exception will be generated. RegisterClipboardFormat - Registers a new + TGraphic class for use in + LoadFromClipboardFormat @@ -3902,6 +3951,7 @@ If the file is not of the right format, an exception will be generated. UnRegisterGraphicClass - Removes all references to the specified + TGraphic @@ -3912,6 +3962,7 @@ If the file is not of the right format, an exception will be generated. + TGraphic class and all its descendants from the file format and clipboard format internal lists @@ -3946,6 +3997,7 @@ If the file is not of the right format, an exception will be generated. PNG - Returns a png. If the contents is not already a png, the contents are thrown away and a blank png ( + TPortableNetworkGraphic) is returned @@ -3959,8 +4011,10 @@ If the file is not of the right format, an exception will be generated. Graphic - The + TGraphic object contained by the + TPicture @@ -4424,6 +4478,7 @@ If the file is not of the right format, an exception will be generated. + TCanvas @@ -4438,6 +4493,7 @@ If the file is not of the right format, an exception will be generated. + TCanvas and makes its resources available @@ -4960,6 +5016,7 @@ Use Ellipse + X1, Y1 @@ -5030,6 +5087,7 @@ Use Ellipse + Pie to draw a filled pie-shaped wedge on the canvas Method: TCanvas.RadialPie
@@ -6628,6 +6686,7 @@ The boundaries of the rectangle are specified in ARect
X, Y< + override the definition from ancestor classes
@@ -6641,6 +6700,7 @@ The boundaries of the rectangle are specified in ARect
X, Y< + override the method defined for ancestor classes @@ -6654,12 +6714,14 @@ The boundaries of the rectangle are specified in ARect
X, Y< + BitMap data are already in use, the data are shared; if not, a new + BitMap is produced @@ -6734,12 +6796,14 @@ The boundaries of the rectangle are specified in ARect
X, Y< + BitMap data from a device with Handle + DC @@ -6768,12 +6832,14 @@ The boundaries of the rectangle are specified in ARect
X, Y< + BitMap data from a + Stream @@ -6792,6 +6858,7 @@ The boundaries of the rectangle are specified in ARect
X, Y< +
Checks for the presence of a valid Lazarus Resource, then uses @@ -6799,6 +6866,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + LoadFromStream to acquire the data @@ -6845,6 +6913,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + Bitmap data from the specified MIME stream @@ -6900,6 +6969,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + PixMap format @@ -7145,6 +7215,7 @@ Checks for the presence of a valid Lazarus Resource, then uses PixMap - a class derived from + TBitMap , with wrapper to deal specifically with PixMaps (ie using 'XPM' format) PixMap @@ -7448,6 +7519,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + override the destructor defined in ancestor classes @@ -7577,7 +7649,9 @@ Checks for the presence of a valid Lazarus Resource, then uses Ident - the name of the supplied + Color as found in the look-up table of + Colors @@ -7595,6 +7669,7 @@ Checks for the presence of a valid Lazarus Resource, then uses Ident - the suppied name for the required + Color @@ -7605,24 +7680,27 @@ Checks for the presence of a valid Lazarus Resource, then uses - - - - + + SysColorToSysColorIndex - if + Color is one of the system colours, returns the + Index of the system colour + If Color is not a system color, returns -1 - + Returns the Index value of the Color if it is a system colour, otherwise returns -1 - + The Color for processing ColorToRGB - given a + Color value, converts into + RGB @@ -7758,8 +7836,10 @@ Checks for the presence of a valid Lazarus Resource, then uses FPColorToTColor - converts a colour specified as a + FPColor to a colour of type + TColor @@ -7781,8 +7861,10 @@ Checks for the presence of a valid Lazarus Resource, then uses TColorToFPColor - converts a colour of type + TColor to one specified as a + FPColor @@ -7797,6 +7879,7 @@ Checks for the presence of a valid Lazarus Resource, then uses c - the supplied colour specified as type + TColor @@ -8256,11 +8339,13 @@ Checks for the presence of a valid Lazarus Resource, then uses 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

@@ -8308,6 +8393,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + Bitmap data from an interface image @@ -8350,6 +8436,7 @@ Checks for the presence of a valid Lazarus Resource, then uses + TGraphic classes with computationally intensive (slow) operations, such as loading, storing, or transforming image data.

Event params: @@ -8617,6 +8704,7 @@ Checks for the presence of a valid Lazarus Resource, then uses TCustomBitMap - the base class for + TBitmap @@ -9773,6 +9861,7 @@ Checks for the presence of a valid Lazarus Resource, then uses TCustomBitmapImage - the base type for + TBitmapImage @@ -10126,18 +10215,15 @@ Checks for the presence of a valid Lazarus Resource, then uses - - - - + Draw the bitmap on the specified Canvas at the specified coordinates - + The canvas on which the bitmap is to be drawn - + The rectangular coordinates where the canvas containing the bitmap is located @@ -10439,6 +10525,7 @@ Checks for the presence of a valid Lazarus Resource, then uses BitMap constructor BitMap constructor. The supplied code can + override the definition from ancestor classes @@ -10448,16 +10535,19 @@ Checks for the presence of a valid Lazarus Resource, then uses 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

@@ -10469,10 +10559,7 @@ Checks for the presence of a valid Lazarus Resource, then uses
- - - - + Releases all the resources used for the image that is being discarded @@ -10527,58 +10614,48 @@ Checks for the presence of a valid Lazarus Resource, then uses The target resource type specified as a string - + + Load a bitmap from the nominated Device + - + The handle for the device from which the bitmap is to be loaded - - - - + Load a bitmap from a stream - + The stream from which the bitmap is to be loaded - - - - + Load a bitmap from a MIME type stream - + The stream from which the bitmap is to be loaded - + The MIME type of the stream from which the bitmap is to be loaded - - - - + Load a bitmap from a Lazarus interface image - + The Lazarus interface image from which the bitmap is to be loaded - - - - + Load a bitmap from a XPM file (pixmap) - + The name of the file from which the bitmap is to be loaded @@ -11126,11 +11203,16 @@ Checks for the presence of a valid Lazarus Resource, then uses

A list of system Colors is specified as a look-up table of indices (Entry) and names (MapEntry)

This function checks that the value in + Entry is within the permitted range, and returns the data pair + Value, + Name of the corresponding colour in + MapEntry. +

If Entry is out of range the Result is False

If Entry is out of the range [0..High(Colours)] the Result is returned as False @@ -11148,8 +11230,11 @@ This function checks that the value in MapEntry - the record of + Value, + Name returned from the look-up table of + Colors @@ -11310,6 +11395,15 @@ This function checks that the value in
+ + Determine whether this instance of the class can read graphic streams + + + Class of image processor to be used for reading the bitmap + + + Returns True if the supplied class is capable of reading graphic streams +