<< Click here to display Table of Contents >> Navigation: Code Documentation > RSVclSVG > RSSVGSyncObjs > Classes:
Comments (0)
Provides a thread class for loading a SVG from a stream and drawing to a bitmap
Namespace: RSSVGSyncObjs
TThread RSSVGSyncObjs.TSVGThread RSSVGSyncObjs.TSVGLoadThread
Delphi
type TSVGLoadThread = class(TSVGThread) end;
Name
Description
Create(Single,Single,Boolean)
Overloaded. Creates the SVG thread with a default minimum width and height for the bitmap (Inherited from RSSVGSyncObjs.TSVGThread.)
Create(String,Single,Single,Boolean)
Overloaded. Constructs the thread and opens a file stream for the given filename
Create(TStream,Single,Single,Boolean)
Overloaded. Constructs the thread and prepares it to load the specified stream that should contain a SVG
Destroy
Represents the destructor of the TSVGLoadThread class. (Overrides RSSVGSyncObjs.TSVGThread.Destroy.)
Top
Bitmap
Bitmap to draw the SVG into. The RSSVGSyncObjs.TSVGThread.DefaultWidth and RSSVGSyncObjs.TSVGThread.DefaultHeight properties define the default minimum size of the bitmap, which will be changed based on the size of the SVG and the RSSVGSyncObjs.TSVGThread.WrapMode and RSSVGSyncObjs.TSVGThread.ScaleFactor properties (Inherited from RSSVGSyncObjs.TSVGThread.)
DefaultHeight
Default Height of Bitmap where SVG is to be drawn (Inherited from RSSVGSyncObjs.TSVGThread.)
DefaultWidth
Default Width of Bitmap where SVG is to be drawn (Inherited from RSSVGSyncObjs.TSVGThread.)
ScaleFactor
Defines how the SVG is scaled when RSSVGSyncObjs.TSVGThread.WrapMode is iwOriginal (Inherited from RSSVGSyncObjs.TSVGThread.)
Stream
Defines the stream for the thread to read to load the SVG
SVG
the SVG object to draw (Inherited from RSSVGSyncObjs.TSVGThread.)
WrapMode
Defines how the SVG is drawn to the bitmap (Inherited from RSSVGSyncObjs.TSVGThread.)
Execute
Represents method Execute. (Overrides RSSVGSyncObjs.TSVGThread.Execute.)
IsValidSVG
Returns TRUE if the thread loads a valid SVG (no errors) (Overrides RSSVGSyncObjs.TSVGThread.IsValidSVG.)
Note
If Bitmap is nil, the drawing operation will not occur
•RSSVGSyncObjs