Base class for graphics objects (brush, pen, path, image, etc) in the RiverSoftAVG GDI+ library. The base graphics object contains a reference to the owning canvas.
Namespace: RSGdiPlusGraphics
Delphi
|
type
TRSGPGraphicsObject = class(TPersistent)
end;
|
|
Name
|
Description
|
![public property public property](pubproperty.gif)
|
Handle
|
Handle of the graphics object, used by the MS GDI+ flat API routines
|
![public property public property](pubproperty.gif)
|
OnChange
|
Occurs when the graphics object changes.
Note
|
There are two events that are exactly the same, OnChanged and OnChange. The extra event name is to allow easier transition from other Delphi libraries, either the VCL (OnChanged) or FMX (OnChange) libraries. Use either one as needed. Only one event is triggered.
|
|
![public property public property](pubproperty.gif)
|
OnChanged
|
Occurs when the graphics object changes.
Note
|
There are two events that are exactly the same, OnChanged and OnChange. The extra event name is to allow easier transition from other Delphi libraries, either the VCL (OnChanged) or FMX (OnChange) libraries. Use either one as needed. Only one event is triggered.
|
|
![public property public property](pubproperty.gif)
|
Owner
|
Canvas that owns the object. The Canvas will free this graphics object if it is destroyed. However, to keep memory use under control, it is recommended that you free graphics objects when you are finished with them.
|
Top
|
|
Name
|
Description
|
![protected method protected method](protmethod.gif)
|
Changed
|
Call this method when the graphics object changes. It triggers an OnChange event.
|
![public method public method](pubmethod.gif)
|
Clone
|
Creates a copy of the graphics object
|
![protected method protected method](protmethod.gif)
|
GetHandle
|
Call this method to acquire a handle from the GDI+ flat API library
|
![protected method protected method](protmethod.gif)
|
Notification(TRSGPCanvas)
|
Called when the Canvas is releasing control of the graphics object. The canvas will no longer be responsible for freeing the graphics object.
|
![public method public method](pubmethod.gif)
|
Prepare(TRectF,Single)
|
Prepare the graphics object for drawing. Graphics objects respond in this method to upcoming calls. For example, gradient brushes can make sure the gradient will cover the entire rectangle.
|
![public method public method](pubmethod.gif)
|
QueryInterface(TGUID,Void)
|
Represents method QueryInterface(TGUID,Void).
|
![protected method protected method](protmethod.gif)
|
ReleaseHandle
|
Releases the underlying GDI+ object back to the GDI+ library.
|
![public method public method](pubmethod.gif)
|
Update
|
Update native graphics object
|
![public method public method](pubmethod.gif)
|
_AddRef
|
Represents method _AddRef.
|
![public method public method](pubmethod.gif)
|
_Release
|
Represents method _Release.
|
Top
|
|
Name
|
Description
|
![protected field protected field](protfield.gif)
|
FHandle
|
Represents field FHandle.
|
Top
|