Hide Comments
Hide Comments

Comments (0)

Provides a thread class for loading a SVG from a stream and drawing to a bitmap

Namespace: RSSVGSyncObjs

expandingInheritance Hierarchy

TThread
  RSSVGSyncObjs.TSVGThread
    RSSVGSyncObjs.TSVGLoadThread
 

expandingSyntax

Delphi

type
  TSVGLoadThread = class(TSVGThread)
  end;
 

expandingConstructors

 

Name

Description

public constructor

Create(Single,Single,Boolean)

Overloaded. Creates the SVG thread with a default minimum width and height for the bitmap (Inherited from RSSVGSyncObjs.TSVGThread.)

public constructor

Create(String,Single,Single,Boolean)

Overloaded. Constructs the thread and opens a file stream for the given filename

public constructor

Create(TStream,Single,Single,Boolean)

Overloaded. Constructs the thread and prepares it to load the specified stream that should contain a SVG

public destructor

Destroy

Represents the destructor of the TSVGLoadThread class. (Overrides RSSVGSyncObjs.TSVGThread.Destroy.)

Top

expandingProperties

 

Name

Description

public property

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.)

public property

DefaultHeight

Default Height of Bitmap where SVG is to be drawn (Inherited from RSSVGSyncObjs.TSVGThread.)

public property

DefaultWidth

Default Width of Bitmap where SVG is to be drawn (Inherited from RSSVGSyncObjs.TSVGThread.)

public property

ScaleFactor

Defines how the SVG is scaled when RSSVGSyncObjs.TSVGThread.WrapMode is iwOriginal (Inherited from RSSVGSyncObjs.TSVGThread.)

public property

Stream

Defines the stream for the thread to read to load the SVG

public property

SVG

the SVG object to draw (Inherited from RSSVGSyncObjs.TSVGThread.)

public property

WrapMode

Defines how the SVG is drawn to the bitmap (Inherited from RSSVGSyncObjs.TSVGThread.)

Top

expandingMethods

 

Name

Description

protected method

Execute

Represents method Execute. (Overrides RSSVGSyncObjs.TSVGThread.Execute.)

public method

IsValidSVG

Returns TRUE if the thread loads a valid SVG (no errors) (Overrides RSSVGSyncObjs.TSVGThread.IsValidSVG.)

Top

expandingRemarks

noteNote

If Bitmap is nil, the drawing operation will not occur

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb