Docs: LCL/lazcanvas. Adds, updates topic content.

* Adds missing short descriptions.
* Removes extraneous or unused XML tagging.
This commit is contained in:
dsiders 2022-12-13 21:57:22 +00:00
parent d28e93e68a
commit 939c3ac7d5

View File

@ -7,7 +7,9 @@ LazCanvas
==================================================================== ====================================================================
--> -->
<module name="LazCanvas"> <module name="LazCanvas">
<short>Classes and functions for extending TFPImageCanvas.</short> <short>
Classes and functions for extending TFPImageCanvas.
</short>
<descr> <descr>
<p> <p>
<file>lazcanvas.pas</file> contains classes and functions for extending <file>lazcanvas.pas</file> contains classes and functions for extending
@ -39,6 +41,7 @@ Author: Felipe Monteiro de Carvalho
<element name="fppixlcanv"/> <element name="fppixlcanv"/>
<element name="IntfGraphics"/> <element name="IntfGraphics"/>
<element name="LazRegions"/> <element name="LazRegions"/>
<!-- used for debugging or profiling -->
<element name="LazSysUtils"/> <element name="LazSysUtils"/>
<element name="LCLProc"/> <element name="LCLProc"/>
@ -82,7 +85,6 @@ Images use 32-bit RGB colors with an Alpha channel in the low-order octet.
</short> </short>
</element> </element>
<!-- class Visibility: default -->
<element name="TFPSharpInterpolation"> <element name="TFPSharpInterpolation">
<short>Implements a very sharp and square interpolation.</short> <short>Implements a very sharp and square interpolation.</short>
<descr> <descr>
@ -91,16 +93,15 @@ TFPSharpInterpolation implements a very sharp and square interpolation for
stretching, similar to StretchBlt from the Windows API. stretching, similar to StretchBlt from the Windows API.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TFPSharpInterpolation.Execute"> <element name="TFPSharpInterpolation.Execute">
<short> <short>
Paints an image on the Canvas using the specified coordinates and dimensions. Paints an image on the Canvas using the specified coordinates and dimensions.
</short> </short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TFPSharpInterpolation.Execute.x"> <element name="TFPSharpInterpolation.Execute.x">
<short>Horizontal coordinate.</short> <short>Horizontal coordinate.</short>
@ -115,7 +116,6 @@ Paints an image on the Canvas using the specified coordinates and dimensions.
<short>Height for the output.</short> <short>Height for the output.</short>
</element> </element>
<!-- class Visibility: default -->
<element name="TLazCanvasState"> <element name="TLazCanvasState">
<short>Contains properties reflecting the state for a Lazarus canvas.</short> <short>Contains properties reflecting the state for a Lazarus canvas.</short>
<descr> <descr>
@ -142,28 +142,24 @@ and <var>RestoreState</var> methods.
</seealso> </seealso>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.Brush"> <element name="TLazCanvasState.Brush">
<short>Brush for the canvas.</short> <short>Brush for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.Pen"> <element name="TLazCanvasState.Pen">
<short>Pen for the canvas.</short> <short>Pen for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.Font"> <element name="TLazCanvasState.Font">
<short>Font for the canvas.</short> <short>Font for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.BaseWindowOrg"> <element name="TLazCanvasState.BaseWindowOrg">
<short>Base window origin for the canvas.</short> <short>Base window origin for the canvas.</short>
<descr> <descr>
@ -174,10 +170,9 @@ canvas for the containing Form. It is useful when implementing the non-native
windowed controls. windowed controls.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.WindowOrg"> <element name="TLazCanvasState.WindowOrg">
<short>Window origin for the canvas.</short> <short>Window origin for the canvas.</short>
<descr> <descr>
@ -186,24 +181,21 @@ Contains the absolute coordinates for the canvas with
<var>BaseWindowOrg</var> summed up. <var>BaseWindowOrg</var> summed up.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.Clipping"> <element name="TLazCanvasState.Clipping">
<short>Indicates if Clipping is enabled for the canvas.</short> <short>Indicates if Clipping is enabled for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvasState.ClipRegion"> <element name="TLazCanvasState.ClipRegion">
<short>Defines the clipping region for the canvas.</short> <short>Defines the clipping region for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- destructor Visibility: public -->
<element name="TLazCanvasState.Destroy"> <element name="TLazCanvasState.Destroy">
<short>Destructor for the class instance.</short> <short>Destructor for the class instance.</short>
<descr> <descr>
@ -220,7 +212,6 @@ Destroy calls the inherited destructor prior to exiting from the method.
</seealso> </seealso>
</element> </element>
<!-- class Visibility: default -->
<element name="TLazCanvas"> <element name="TLazCanvas">
<short> <short>
Implements a canvas which masks differences between FCL and LCL canvas Implements a canvas which masks differences between FCL and LCL canvas
@ -240,13 +231,20 @@ TLazCanvas is used in the implementation of custom-drawn widgetset classes,
and provides a device context used to perform drawing operations for a and provides a device context used to perform drawing operations for a
control. control.
</p> </p>
<p>
There are several useful examples using TLazCanvas on the Lazarus Wiki at:
</p>
<p>
<url href="https://wiki.freepascal.org/Developing_with_Graphics">
Developing with Graphics
</url>
</p>
</descr> </descr>
<seealso> <seealso>
<link id="#LCL.Graphics.TCanvas">TCanvas</link> <link id="#lcl.graphics.TCanvas">TCanvas</link>
</seealso> </seealso>
</element> </element>
<!-- variable Visibility: private -->
<element name="TLazCanvas.FAssignedBrush"/> <element name="TLazCanvas.FAssignedBrush"/>
<element name="TLazCanvas.FAssignedFont"/> <element name="TLazCanvas.FAssignedFont"/>
<element name="TLazCanvas.FAssignedPen"/> <element name="TLazCanvas.FAssignedPen"/>
@ -254,7 +252,6 @@ control.
<element name="TLazCanvas.FLazClipRegion"/> <element name="TLazCanvas.FLazClipRegion"/>
<element name="TLazCanvas.FWindowOrg"/> <element name="TLazCanvas.FWindowOrg"/>
<!-- variable Visibility: private -->
<element name="TLazCanvas.GraphicStateList"> <element name="TLazCanvas.GraphicStateList">
<short>Stores saved canvas state information.</short> <short>Stores saved canvas state information.</short>
<descr> <descr>
@ -271,10 +268,9 @@ instances.
</seealso> </seealso>
</element> </element>
<!-- function Visibility: private -->
<element name="TLazCanvas.GetAssignedBrush"> <element name="TLazCanvas.GetAssignedBrush">
<short>Gets the value for the AssignedBrush property.</short> <short>Gets the value for the AssignedBrush property.</short>
<descr></descr> <descr/>
<seealso> <seealso>
<link id="TLazCanvas.AssignedBrush"/> <link id="TLazCanvas.AssignedBrush"/>
</seealso> </seealso>
@ -283,10 +279,9 @@ instances.
<short>Value for the AssignedBrush property.</short> <short>Value for the AssignedBrush property.</short>
</element> </element>
<!-- function Visibility: private -->
<element name="TLazCanvas.GetAssignedPen"> <element name="TLazCanvas.GetAssignedPen">
<short>Gets the value for the AssignedPen property.</short> <short>Gets the value for the AssignedPen property.</short>
<descr></descr> <descr/>
<seealso> <seealso>
<link id="TLazCanvas.AssignedPen"/> <link id="TLazCanvas.AssignedPen"/>
</seealso> </seealso>
@ -295,10 +290,9 @@ instances.
<short>Value for the AssignedPen property.</short> <short>Value for the AssignedPen property.</short>
</element> </element>
<!-- function Visibility: private -->
<element name="TLazCanvas.GetAssignedFont"> <element name="TLazCanvas.GetAssignedFont">
<short>Gets the value for the AssignedFont property.</short> <short>Gets the value for the AssignedFont property.</short>
<descr></descr> <descr/>
<seealso> <seealso>
<link id="TLazCanvas.AssignedFont"/> <link id="TLazCanvas.AssignedFont"/>
</seealso> </seealso>
@ -307,10 +301,9 @@ instances.
<short>Value for the AssignedFont property.</short> <short>Value for the AssignedFont property.</short>
</element> </element>
<!-- function Visibility: private -->
<element name="TLazCanvas.GetWindowOrg"> <element name="TLazCanvas.GetWindowOrg">
<short>Gets the value for the WindowOrg property.</short> <short>Gets the value for the WindowOrg property.</short>
<descr></descr> <descr/>
<seealso> <seealso>
<link id="TLazCanvas.WindowOrg"/> <link id="TLazCanvas.WindowOrg"/>
</seealso> </seealso>
@ -319,10 +312,9 @@ instances.
<short>Value for the WindowOrg property.</short> <short>Value for the WindowOrg property.</short>
</element> </element>
<!-- procedure Visibility: private -->
<element name="TLazCanvas.SetWindowOrg"> <element name="TLazCanvas.SetWindowOrg">
<short>Sets the value for the WindowOrg property.</short> <short>Sets the value for the WindowOrg property.</short>
<descr></descr> <descr/>
<seealso> <seealso>
<link id="TLazCanvas.WindowOrg"/> <link id="TLazCanvas.WindowOrg"/>
</seealso> </seealso>
@ -331,11 +323,10 @@ instances.
<short>New value for the WindowOrg property.</short> <short>New value for the WindowOrg property.</short>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TLazCanvas.SetColor"> <element name="TLazCanvas.SetColor">
<short>Sets the color for the pixel at the specified coordinates.</short> <short>Sets the color for the pixel at the specified coordinates.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.SetColor.x"> <element name="TLazCanvas.SetColor.x">
<short>Horizontal pixel coordinate.</short> <short>Horizontal pixel coordinate.</short>
@ -347,7 +338,6 @@ instances.
<short>Color for the pixel.</short> <short>Color for the pixel.</short>
</element> </element>
<!-- function Visibility: protected -->
<element name="TLazCanvas.DoCreateDefaultFont"> <element name="TLazCanvas.DoCreateDefaultFont">
<short>Creates the custom font used as the default for the canvas.</short> <short>Creates the custom font used as the default for the canvas.</short>
<descr> <descr>
@ -364,13 +354,12 @@ to be used. The <var>FPColor</var> property in the font is set to
<var>colBlack</var>. <var>colBlack</var>.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.DoCreateDefaultFont.Result"> <element name="TLazCanvas.DoCreateDefaultFont.Result">
<short>TFPCustomFont instance created and initialized in the method.</short> <short>TFPCustomFont instance created and initialized in the method.</short>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TLazCanvas.DoRectangle"> <element name="TLazCanvas.DoRectangle">
<short> <short>
Adjusts the fcl-image coordinate system to be compatible with coordinates Adjusts the fcl-image coordinate system to be compatible with coordinates
@ -394,7 +383,6 @@ Pen for the canvas.
<short>TRect with the bounds for the rectangular area.</short> <short>TRect with the bounds for the rectangular area.</short>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TLazCanvas.DoRectangleFill"> <element name="TLazCanvas.DoRectangleFill">
<short>Adjusts the FCL image rectangle to be LCL compatible.</short> <short>Adjusts the FCL image rectangle to be LCL compatible.</short>
<descr> <descr>
@ -409,7 +397,6 @@ used in <var>TCanvas</var>.
<short>Rectangle bounds adjusted in the method.</short> <short>Rectangle bounds adjusted in the method.</short>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TLazCanvas.DoPolygonFill"> <element name="TLazCanvas.DoPolygonFill">
<short>Implements a polygon fill algorithm not present in fcl-image.</short> <short>Implements a polygon fill algorithm not present in fcl-image.</short>
<descr> <descr>
@ -418,19 +405,18 @@ Implements a polygon fill algorithm not present in fcl-image. The algorithm
is explained <url href="http://alienryderflex.com/polygon_fill/">here</url>. is explained <url href="http://alienryderflex.com/polygon_fill/">here</url>.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.DoPolygonFill.points"> <element name="TLazCanvas.DoPolygonFill.points">
<short>Array with the TPoint instances for the polygon corners.</short> <short>Array with the TPoint instances for the polygon corners.</short>
</element> </element>
<!-- procedure Visibility: protected -->
<element name="TLazCanvas.DoLine"> <element name="TLazCanvas.DoLine">
<short> <short>
Draws a line using the specified coordinates and Pen for the canvas. Draws a line using the specified coordinates and Pen for the canvas.
</short> </short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.DoLine.x1"> <element name="TLazCanvas.DoLine.x1">
<short>Initial horizontal coordinate for the line.</short> <short>Initial horizontal coordinate for the line.</short>
@ -446,41 +432,101 @@ Draws a line using the specified coordinates and Pen for the canvas.
</element> </element>
<element name="TLazCanvas.DoCopyRect"> <element name="TLazCanvas.DoCopyRect">
<short>Copies a source rectangle for the specified canvas.</short> <short>
<descr></descr> Performs actions needed to copy a source rectangle from the specified canvas.
<seealso></seealso> </short>
<descr>
<p>
<var>DoCopyRect</var> is an overridden method in <var>TLazCanvas</var>. It is
used to copy values from the specified source rectangle in the Canvas argument
to the location specified in X and Y. DoCopyRect reimplements the method from
an ancestor class (TFPPixelCanvas).
</p>
<p>
<var>X</var> and <var>Y</var> contain the left, top coordinates on the Lazarus
canvas where the copied values are stored.
</p>
<p>
<var>Canvas</var> is the TFPCustomCanvas instance with the values for the
SourceRect argument.
</p>
<p>
<var>SourceRect</var> is the TRect instance width the Left, Top, Right and
Bottom coordinates for the rectangular region copied from Canvas.
</p>
<p>
DoCopyRect calls the CanvasCopyRect method to perform the actions needed to
perform the copy operation using the specified arguments.
</p>
</descr>
<seealso>
<link id="TLazCanvas.CanvasCopyRect"/>
</seealso>
</element> </element>
<element name="TLazCanvas.DoCopyRect.x"> <element name="TLazCanvas.DoCopyRect.x">
<short></short> <short>
Left coordinate where the copied values are stored on the Lazarus canvas.
</short>
</element> </element>
<element name="TLazCanvas.DoCopyRect.y"> <element name="TLazCanvas.DoCopyRect.y">
<short></short> <short>
Top coordinate where the copied values are stored on the Lazarus canvas.
</short>
</element> </element>
<element name="TLazCanvas.DoCopyRect.canvas"> <element name="TLazCanvas.DoCopyRect.canvas">
<short></short> <short>
Canvas instance that is the source for the values copied in the method.
</short>
</element> </element>
<element name="TLazCanvas.DoCopyRect.SourceRect"> <element name="TLazCanvas.DoCopyRect.SourceRect">
<short></short> <short>
TRect instance with the Canvas coordinates copied in the method.
</short>
</element> </element>
<element name="TLazCanvas.DoDraw"> <element name="TLazCanvas.DoDraw">
<short> <short>
Draws the specified image at the given coordinates using AlphaBlending. Performs actions needed to draws the specified image at the given coordinates
using AlphaBlending.
</short> </short>
<descr></descr> <descr>
<seealso></seealso> <p>
<var>DoDraw</var> is an overridden method in <var>TLazCanvas</var>. It
reimplements the method from an ancestor class (TFPixelCanvas), and calls the
AlphaBlend_Image method to draw the specified image at the given position.
</p>
<p>
<var>X</var> and <var>Y</var> contain the left and top coordinates on the
Lazarus canvas where the image is drawn.
</p>
<p>
<var>AImage</var> is the TFPCustomImage instance drawn at the specified
position.
</p>
<p>
DoDraw is used to implement the DoDrawImage method.
</p>
</descr>
<seealso>
<link id="TLazCanvas.AlphaBlend_Image"/>
</seealso>
</element> </element>
<element name="TLazCanvas.DoDraw.x"> <element name="TLazCanvas.DoDraw.x">
<short></short> <short>
Left coordinate on the Lazarus canvas where the specified image is drawn.
</short>
</element> </element>
<element name="TLazCanvas.DoDraw.y"> <element name="TLazCanvas.DoDraw.y">
<short></short> <short>
Top coordinate on the Lazarus canvas where the specified image is drawn.
</short>
</element> </element>
<element name="TLazCanvas.DoDraw.AImage"> <element name="TLazCanvas.DoDraw.AImage">
<short></short> <short>
Image drawn on the Lazarus canvas at the specified position.
</short>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvas.HasNoImage"> <element name="TLazCanvas.HasNoImage">
<short>Indicates if a valid image was provided in the constructor.</short> <short>Indicates if a valid image was provided in the constructor.</short>
<descr> <descr>
@ -497,7 +543,6 @@ window controls.
</seealso> </seealso>
</element> </element>
<!-- variable Visibility: public -->
<element name="TLazCanvas.NativeDC"> <element name="TLazCanvas.NativeDC">
<short>Native device context for the canvas.</short> <short>Native device context for the canvas.</short>
<descr> <descr>
@ -506,7 +551,7 @@ window controls.
context used to render a custom-drawn LCL control. context used to render a custom-drawn LCL control.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.ExtraFontData"> <element name="TLazCanvas.ExtraFontData">
@ -531,7 +576,6 @@ Member with the TLazCanvasImageFormat instance used to speed up drawing.
<seealso/> <seealso/>
</element> </element>
<!-- constructor Visibility: public -->
<element name="TLazCanvas.Create"> <element name="TLazCanvas.Create">
<short>Constructor for the class instance.</short> <short>Constructor for the class instance.</short>
<descr> <descr>
@ -553,7 +597,6 @@ when <var>AnImage</var> has not been assigned (contains <b>Nil</b>).
<short>Screen image for the control rendered on the canvas.</short> <short>Screen image for the control rendered on the canvas.</short>
</element> </element>
<!-- destructor Visibility: public -->
<element name="TLazCanvas.Destroy"> <element name="TLazCanvas.Destroy">
<short>Destructor for the class instance.</short> <short>Destructor for the class instance.</short>
<descr> <descr>
@ -570,17 +613,15 @@ the inherited destructor prior to exiting from the method.
</seealso> </seealso>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.SetLazClipRegion"> <element name="TLazCanvas.SetLazClipRegion">
<short>Sets the value in the ClipRegion property.</short> <short>Sets the value in the ClipRegion property.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.SetLazClipRegion.ARegion"> <element name="TLazCanvas.SetLazClipRegion.ARegion">
<short>Region stored in the property.</short> <short>Region stored in the property.</short>
</element> </element>
<!-- function Visibility: public -->
<element name="TLazCanvas.SaveState"> <element name="TLazCanvas.SaveState">
<short>Saves the current canvas state in the GraphicStateList member.</short> <short>Saves the current canvas state in the GraphicStateList member.</short>
<descr> <descr>
@ -616,60 +657,110 @@ Ordinal position in GraphicStateList where the saved canvas state was stored.
</short> </short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.RestoreState"> <element name="TLazCanvas.RestoreState">
<short> <short>
Restores the canvas to the state stored at the specified position. Restores the canvas to the state stored at the specified position.
</short> </short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.RestoreState.AIndex"> <element name="TLazCanvas.RestoreState.AIndex">
<short>Ordinal position in GraphicStateList restored in the method.</short> <short>Ordinal position in GraphicStateList restored in the method.</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.ResetCanvasState"> <element name="TLazCanvas.ResetCanvasState">
<short> <short>
Sets the canvas to the default values/state used in the LCL TCanvas class. Sets the canvas to the default values/state used in the LCL TCanvas class.
</short> </short>
<descr></descr> <descr/>
<errors></errors> <seealso/>
<seealso></seealso>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.AlphaBlend"> <element name="TLazCanvas.AlphaBlend">
<short> <short>
Performs an AlphaBlend operation using the specified source canvas. Alpha blends the specified content from the source canvas onto the canvas
instance.
</short> </short>
<descr></descr> <descr>
<errors></errors> <p>
<seealso></seealso> <var>AlphaBlend</var> combines the content in <var>ASource</var> with the
current class instance to create the appearance of an image with partial or
full transparency. The current class instance provides the background for the
combined content.
</p>
<p>
<var>ADestX</var> and <var>ADestY</var> provides the left and top coordinates
where the content from ASource is overlayed.
</p>
<p>
<var>ASourceX</var>, <var>ASourceY</var>, <var>ASourceWidth</var> and <var>
ASourceHeight</var> contain the coordinates and dimensions for the image area
retrieved from the ASource canvas.
</p>
<p>
AlphaBlend ensures that the specified source content is not too large for the
destination area. The dimensions in ASourceWidth and ASourceHeight are
adjusted if any part of the image is outside the destination area.
</p>
<p>
AlphaBlend creates an inverse mask for the alpha channel used on the pixels in
ASource. The mask is applied to the RGB components for the Colors in the
current class instance. The alpha channel in Colors is set to alphaOpaque for
the combined content.
</p>
<p>
AlphaBlend is used in the implementation of the AlphaBlend_Image method.
</p>
<p>
<b>Topics of Interest (but not documented in FCL)</b>
</p>
<ul>
<li>TFPCustomCanvas.Colors (in <file>fpcanvas.pp</file>)</li>
<li>TFPImageCanvas (in <file>fpimgcanv.pp</file>)</li>
<li>TFPColor (in <file>fpimage.pp</file>)</li>
</ul>
</descr>
<seealso>
<link id="TLazCanvas.AlphaBlend_Image"/>
<link id="TLazCanvas.AlphaBlendIgnoringDestPixels"/>
</seealso>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ASource"> <element name="TLazCanvas.AlphaBlend.ASource">
<short></short> <short>
Lazarus canvas with the content alpha blended onto the current class instance.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ADestX"> <element name="TLazCanvas.AlphaBlend.ADestX">
<short></short> <short>
Left coordinate where the content in ASource is applied.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ADestY"> <element name="TLazCanvas.AlphaBlend.ADestY">
<short></short> <short>
Top coordinate where the content in ASource is applied.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ASourceX"> <element name="TLazCanvas.AlphaBlend.ASourceX">
<short></short> <short>
Left coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ASourceY"> <element name="TLazCanvas.AlphaBlend.ASourceY">
<short></short> <short>
Top coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ASourceWidth"> <element name="TLazCanvas.AlphaBlend.ASourceWidth">
<short></short> <short>
Width (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend.ASourceHeight"> <element name="TLazCanvas.AlphaBlend.ASourceHeight">
<short></short> <short>
Height (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels">
<short>Performs an AlphaBlend operation assuming a white background.</short> <short>Performs an AlphaBlend operation assuming a white background.</short>
<descr> <descr>
@ -679,104 +770,165 @@ consistent or valid. It will draw as if the target area contained opaque
white pixels. white pixels.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso>
<link id="TLazCanvas.AlphaBlend"/>
</seealso>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASource"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASource">
<short></short> <short>
Lazarus canvas with the content alpha blended onto the current class instance.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ADestX"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ADestX">
<short></short> <short>
Left coordinate where the content in ASource is applied.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ADestY"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ADestY">
<short></short> <short>
Top coordinate where the content in ASource is applied.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceX"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceX">
<short></short> <short>
Left coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceY"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceY">
<short></short> <short>
Top coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceWidth"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceWidth">
<short></short> <short>
Width (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceHeight"> <element name="TLazCanvas.AlphaBlendIgnoringDestPixels.ASourceHeight">
<short></short> <short>
Height (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image"> <element name="TLazCanvas.AlphaBlend_Image">
<short>AlphaBlends the specified image onto the canvas.</short> <short>AlphaBlends the specified image onto the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso>
<link id="TLazCanvas.AlphaBlend"/>
<link id="TLazCanvas.AlphaBlendIgnoringDestPixels"/>
</seealso>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ASource"> <element name="TLazCanvas.AlphaBlend_Image.ASource">
<short></short> <short>
TFPCustomImage instance with the content applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ADestX"> <element name="TLazCanvas.AlphaBlend_Image.ADestX">
<short></short> <short>
Left coordinate where the content in ASource is applied to the canvas.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ADestY"> <element name="TLazCanvas.AlphaBlend_Image.ADestY">
<short></short> <short>
Top coordinate where the content in ASource is applied to the canvas.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ASourceX"> <element name="TLazCanvas.AlphaBlend_Image.ASourceX">
<short></short> <short>
Left coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ASourceY"> <element name="TLazCanvas.AlphaBlend_Image.ASourceY">
<short></short> <short>
Top coordinate for the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ASourceWidth"> <element name="TLazCanvas.AlphaBlend_Image.ASourceWidth">
<short></short> <short>
Width (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.AlphaBlend_Image.ASourceHeight"> <element name="TLazCanvas.AlphaBlend_Image.ASourceHeight">
<short></short> <short>
Height (in pixels) of the content in ASource applied in the method.
</short>
</element> </element>
<element name="TLazCanvas.DoDrawImage"> <element name="TLazCanvas.DoDrawImage">
<short>Calls DoDraw for the specified image and coordinates.</short> <short>
<descr></descr> Calls DoDraw for the specified image and coordinates.
<seealso></seealso> </short>
<descr/>
<seealso>
<link id="TLazCanvas.DoDraw"/>
</seealso>
</element> </element>
<element name="TLazCanvas.DoDrawImage.x"> <element name="TLazCanvas.DoDrawImage.x">
<short></short> <short>
Left coordinate where the specified image is drawn on the Lazarus canvas.
</short>
</element> </element>
<element name="TLazCanvas.DoDrawImage.y"> <element name="TLazCanvas.DoDrawImage.y">
<short></short> <short>
Top coordinate where the specified image is drawn on the Lazarus canvas.
</short>
</element> </element>
<element name="TLazCanvas.DoDrawImage.AImage"> <element name="TLazCanvas.DoDrawImage.AImage">
<short></short> <short>
TFPCustomImage instance with the content rendered to the canvas.
</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.CanvasCopyRect"> <element name="TLazCanvas.CanvasCopyRect">
<short> <short>
Copies the contents of a supported image format in ASource to the canvas. Copies the contents of a supported image format in ASource to the canvas.
</short> </short>
<descr></descr> <descr/>
<errors></errors> <seealso>
<seealso></seealso> <link id="TLazCanvas.DoCopyRect"/>
</element> </seealso>
<element name="TLazCanvas.CanvasCopyRect.ASource"> </element>
<short></short>
</element> procedure CanvasCopyRect(ASource: TFPCustomCanvas;
<element name="TLazCanvas.CanvasCopyRect.ADestX"> const ADestX, ADestY, ASourceX, ASourceY,
<short></short> ASourceWidth, ASourceHeight: Integer);
</element>
<element name="TLazCanvas.CanvasCopyRect.ADestY"> <element name="TLazCanvas.CanvasCopyRect.ASource">
<short></short> <short>
</element> TFPCustomCanvas instance with the content copied in the method.
<element name="TLazCanvas.CanvasCopyRect.ASourceX"> </short>
<short></short> </element>
</element> <element name="TLazCanvas.CanvasCopyRect.ADestX">
<element name="TLazCanvas.CanvasCopyRect.ASourceY"> <short>
<short></short> Left coordinate on the canvas where the content in ASource is copied.
</element> </short>
<element name="TLazCanvas.CanvasCopyRect.ASourceWidth"> </element>
<short></short> <element name="TLazCanvas.CanvasCopyRect.ADestY">
</element> <short>
<element name="TLazCanvas.CanvasCopyRect.ASourceHeight"> Top coordinate on the canvas where the content in ASource is copied.
<short></short> </short>
</element>
<element name="TLazCanvas.CanvasCopyRect.ASourceX">
<short>
Left coordinate for the content in ASource copied in the method.
</short>
</element>
<element name="TLazCanvas.CanvasCopyRect.ASourceY">
<short>
Top coordinate for the content in ASource copied in the method.
</short>
</element>
<element name="TLazCanvas.CanvasCopyRect.ASourceWidth">
<short>
Width (in pixels) for the content in ASource copied in the method.
</short>
</element>
<element name="TLazCanvas.CanvasCopyRect.ASourceHeight">
<short>
Height (in pixels) for the content in ASource copied in the method.
</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.FillColor"> <element name="TLazCanvas.FillColor">
<short>Fills the entire drawing area with the specified color.</short> <short>Fills the entire drawing area with the specified color.</short>
<descr> <descr>
@ -786,16 +938,20 @@ Fills the entire drawing area with the specified color.
but it is dangerous; don't use it unless you know what you are doing. but it is dangerous; don't use it unless you know what you are doing.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.FillColor.AColor"> <element name="TLazCanvas.FillColor.AColor">
<short>Color applied to the canvas area.</short> <short>Color applied to the canvas area.</short>
</element> </element>
<element name="TLazCanvas.FillColor.AIgnoreClippingAndWindowOrg"> <element name="TLazCanvas.FillColor.AIgnoreClippingAndWindowOrg">
<short></short> <short>
<b>True</b> ignores the canvas clipping region and window origin, and fills
all pixels for an underlying Image with the specified color. <b>False</b> (the
default) limits the scope to the Width and Height for the canvas - not the
range of pixels in the Image.
</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.AssignPenData"> <element name="TLazCanvas.AssignPenData">
<short>Sets the Pen data for the canvas.</short> <short>Sets the Pen data for the canvas.</short>
<descr> <descr>
@ -806,14 +962,12 @@ Utilized by <var>LCLIntf.SelectObject</var> and by the
<var>Font</var> properties raises exceptions. <var>Font</var> properties raises exceptions.
</p> </p>
</descr> </descr>
<errors></errors> <seealso/>
<seealso></seealso>
</element> </element>
<element name="TLazCanvas.AssignPenData.APen"> <element name="TLazCanvas.AssignPenData.APen">
<short>Pen data stored in the method.</short> <short>Pen data stored in the method.</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.AssignBrushData"> <element name="TLazCanvas.AssignBrushData">
<short>Sets the Brush data for the canvas.</short> <short>Sets the Brush data for the canvas.</short>
<descr> <descr>
@ -824,32 +978,47 @@ Utilized by <var>LCLIntf.SelectObject</var> and by the
<var>Font</var> properties raises exceptions. <var>Font</var> properties raises exceptions.
</p> </p>
</descr> </descr>
<errors></errors> <seealso/>
<seealso></seealso>
</element> </element>
<element name="TLazCanvas.AssignBrushData.ABrush"> <element name="TLazCanvas.AssignBrushData.ABrush">
<short>Brush data stored in the method.</short> <short>Brush data stored in the method.</short>
</element> </element>
<!-- procedure Visibility: public -->
<element name="TLazCanvas.AssignFontData"> <element name="TLazCanvas.AssignFontData">
<short>Sets the Font data for the canvas.</short> <short>Sets the Font data for the canvas.</short>
<descr> <descr>
<p> <p>
AssignFontData copies property values in AFont to the Font for class instance,
including:
</p>
<ul>
<li>FPColor</li>
<li>Name</li>
<li>Size</li>
<li>Bold</li>
<li>Italic</li>
<li>Underline</li>
<li>Strikethrough</li>
</ul>
<p>
No actions are performed in the method if AFont has not been assigned
(contains <b>Nil</b>.
</p>
<p>
Utilized by <var>LCLIntf.SelectObject</var> and by the Utilized by <var>LCLIntf.SelectObject</var> and by the
<var>RestoreState</var> method. This is needed because calling <var>RestoreState</var> method. This is needed because calling
<var>Assign</var> for the <var>Pen</var>, <var>Brush</var>, or <var>Assign</var> for the <var>Pen</var>, <var>Brush</var>, or
<var>Font</var> properties raises exceptions. <var>Font</var> properties raises exceptions.
</p> </p>
</descr> </descr>
<errors></errors> <seealso/>
<seealso></seealso>
</element> </element>
<element name="TLazCanvas.AssignFontData.AFont"> <element name="TLazCanvas.AssignFontData.AFont">
<short></short> <short>
TFPCustomFont instance with the attributes assigned to the Font for the canvas.
</short>
</element> </element>
<!-- property Visibility: public -->
<element name="TLazCanvas.AssignedPen"> <element name="TLazCanvas.AssignedPen">
<short>Pen assigned to the canvas.</short> <short>Pen assigned to the canvas.</short>
<descr> <descr>
@ -859,10 +1028,9 @@ keep track of which pen/brush/font handle was assigned to this canvas. They
are not utilized by <var>TLazCanvas</var> itself. are not utilized by <var>TLazCanvas</var> itself.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- property Visibility: public -->
<element name="TLazCanvas.AssignedBrush"> <element name="TLazCanvas.AssignedBrush">
<short>Brush assigned to the canvas.</short> <short>Brush assigned to the canvas.</short>
<descr> <descr>
@ -872,10 +1040,9 @@ keep track of which pen/brush/font handle was assigned to this canvas. They
are not utilized by <var>TLazCanvas</var> itself. are not utilized by <var>TLazCanvas</var> itself.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- property Visibility: public -->
<element name="TLazCanvas.AssignedFont"> <element name="TLazCanvas.AssignedFont">
<short>Font assigned to the canvas.</short> <short>Font assigned to the canvas.</short>
<descr> <descr>
@ -885,10 +1052,9 @@ keep track of which pen/brush/font handle was assigned to this canvas. They
are not utilized by <var>TLazCanvas</var> itself. are not utilized by <var>TLazCanvas</var> itself.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<!-- property Visibility: public -->
<element name="TLazCanvas.BaseWindowOrg"> <element name="TLazCanvas.BaseWindowOrg">
<short>Base window origin for the canvas.</short> <short>Base window origin for the canvas.</short>
<descr> <descr>
@ -899,16 +1065,15 @@ canvas for the containing Form. It is useful when implementing the non-native
windowed controls. windowed controls.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
<element name="TLazCanvas.ClipRegion"> <element name="TLazCanvas.ClipRegion">
<short>Clipping region for the canvas.</short> <short>Clipping region for the canvas.</short>
<descr></descr> <descr/>
<seealso></seealso> <seealso/>
</element> </element>
<!-- property Visibility: public -->
<element name="TLazCanvas.WindowOrg"> <element name="TLazCanvas.WindowOrg">
<short>Window origin for the canvas.</short> <short>Window origin for the canvas.</short>
<descr> <descr>
@ -917,7 +1082,7 @@ Contains the absolute coordinates for the canvas with
<var>BaseWindowOrg</var> summed up. <var>BaseWindowOrg</var> summed up.
</p> </p>
</descr> </descr>
<seealso></seealso> <seealso/>
</element> </element>
</module> </module>