Hide Comments
Hide Comments

ParseClipRect(String,TRSRect,Boolean,TSVGUnitFactors) Method

Comments (0)

Parses the input string into a clipping rectangle. The input string should be in the format 'rect( top right bottom left)' where top, right, bottom, and left specify offsets from the respective sides of the box.

top, right, bottom, and left may either have a value or 'auto'. Negative lengths are permitted. The value 'auto' means that a given edge of the clipping region will be the same as the edge of the element's generated box (i. e., 'auto' means the same as '0'.)

Namespace: RSSVGUtils

expandingSyntax

Delphi

 function ParseClipRect( S: String; DefValue: TRSRect; var Inherits: Boolean;
  UnitFactors: TSVGUnitFactors ): TRSRect;
 

Parameters

S

Type: String

DefValue

Type: TRSRect

Inherits

Type: Boolean

UnitFactors

Type: TSVGUnitFactors

Return Value

Type: TRSRect

expandingRemarks

If the string is blank, the function returns the default value ( DefValue). If the string contains 'inherits', the function returns the default value and sets the Inherits parameter to true.

noteNote

The UnitFactors parameter specifies the unit factors for conversion of string lengths into actual values. For example, if the input string contains '1cm', the function uses the UnitFactors to know how large a centimer is. It is usually set when the DPI property of the TSVGDocument element is set.

expandingSee Also

Reference

Comments (0)

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