Hide Comments
Hide Comments

TSVGThread.Create(Single,Single,Boolean) Constructor

Comments (0)

Creates the SVG thread with a default minimum width and height for the bitmap

Namespace: FMX.RS.SVGSyncObjs

expandingSyntax

Delphi

public 
  constructor Create( DefaultWidth, DefaultHeight: Single; Suspended: Boolean = True ); overload; 
 

Parameters

DefaultWidth

Type: Single

Minimum Width of bitmap where SVG is drawn

DefaultHeight

Type: Single

Minimum Height of bitmap where SVG is drawn

Suspended

Type: Boolean

Start thread suspended

expandingRemarks

A value of 0 or less for FMX.RS.SVGSyncObjs.TSVGThread.DefaultWidth or FMX.RS.SVGSyncObjs.TSVGThread.DefaultHeight disables drawing of the SVG.

expandingExamples

The following code creates an SVG thread and starts it:

Delphi

 
 aThread := TSVGLoadThread.Create(OpenDialog1.FileName, 200, 200);<b> aThread.WrapMode := iwFit; aThread.OnTerminate := ThreadTerminated; aThread.Start;

expandingSee Also

Comments (0)

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