Hide Comments
Hide Comments

Comments (0)

Defines namespace of SVG utility functions and variables

expandingVariables

 

Name

Description

public variable

MAX_SVGIMAGE_SIZE

Defines the maximum SVG bitmap to create. This variable is used by the ScaleSize function to constrain the maximum size of a bitmap.

Top

expandingRoutines

 

Name

Description

public method

CleanArray(TStringDynArray)

Returns the input string array "cleaned" up, where all array elements that are empty when trimmed are deleted

public method

DrawBitmapWrapped(TSVGCanvas,TSVGBitmap,TSVGRect,TSVGImageWrapMode,Single)

Draws the specified Bitmap on to the Canvas at the specified rectangle using the wrap mode and opacity

public method

GetSVGAlign(String)

Returns the align that matches the string

public method

GetSVGColorInterpolation(String)

Returns the color interpolation that matches the string

public method

GetSVGColorRendering(String)

Returns the color rendering that matches the string

public method

GetSVGCursor(String)

Overloaded. Returns the cursor type that matches the string

public method

GetSVGCursor(TCursor)

Overloaded. Returns the SVG cursor type that is equivalent to the TCursor input type

public method

GetSVGElementType(String)

Returns the SVG element type that matches the string

public method

GetSVGFeatureSupport(String)

Returns the SVG feature that matches the string

public method

GetSVGFillRule(String)

Returns the fill rule that matches the string

public method

GetSVGFontAbsSize(Single)

Overloaded. Returns the absolute font size type that matches the value

public method

GetSVGFontAbsSize(String)

Overloaded. Returns the absolute font size type that matches the string

public method

GetSVGFontFamily(String)

Returns the generic font family that matches the string

public method

GetSVGFontStyle(String)

Returns the font style type that matches the string

public method

GetSVGFontWeight(String)

Returns the font weight type that matches the string

public method

GetSVGGenericFontFamily(String)

Returns the generic font family type that matches the string

public method

GetSVGGradientSpread(String)

Returns the gradient spread type that matches the string

public method

GetSVGGradientUnit(String)

Returns the gradient unit type that matches the string

public method

GetSVGMarkerUnit(String)

Returns the marker unit type that matches the string

public method

GetSVGSelectorTokenType(String)

Returns the selector token type (used in style matching) that matches the string

public method

GetSVGShapeRendering(String)

Returns the shape rendering that matches the string

public method

GetSVGStyleProperty(String)

Returns the style property that matches the string

public method

GetSVGTextAnchor(String)

Overloaded. Returns the text anchor type that matches the string

public method

GetSVGTextAnchor(TSVGTextAlign)

Overloaded. Returns the SVG text anchor type that is equivalent to the text alignment type

public method

GetSVGTextDecoration(String)

Returns the text decoration type that matches the string

public method

GetSVGTextRendering(String)

Returns the text rendering that matches the string

public method

GetSVGUnit(String)

Returns the unit type that matches the string

public method

GetTextAlign(TSVGTextAlign)

Returns the graphics library text alignment type that is equivalent to the SVG text alignment

public method

LoadBitmapFromDataURI(String,TSVGBitmap)

Represents method LoadBitmapFromDataURI(String,TSVGBitmap).

public method

ParseAngle(String,Single,Boolean)

Parses the string into an angle in radians. The value string is assumed to be in degrees. If the keyword 'grad' follows the value, the value string is converted from gradians. If the keyword 'rad' follows the value, the value string is converted from radians.

public method

ParseAspectRatio(String,TSVGPreserveAspectRatio)

Parses the input string and sets the Aspect Ratio properties

public method

ParseAttrString(IXMLNode,String,String,String)

Parses the XML attribute with the specified name into a string

public method

ParseClipRect(String,TRSRect,Boolean,TSVGUnitFactors)

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

public method

ParseColor(String,TSVGColor,Boolean,Boolean)

Parses the input string for a color value.

The allowable values are color | inherit

public method

ParseColorInterpolation(String,TSVGColorInterpolation,Boolean)

Parses the input string for a color interpolation, which specifies the color space for gradient interpolations and alpha compositing. The allowable values are auto | sRGB | linearRGB | inherit.

public method

ParseColorRendering(String,TSVGColorRendering,Boolean)

Parses the input string for a color rendering, which provides a hint to the SVG library about how to optimize its color interpolation and compositing operations. The allowable values are auto | optimizeSpeed | optimizeQuality | inherit

public method

ParseCoordinateSystemUnit(String,TSVGCoordinateSystemUnit)

Parses the input string for a coordinate system unit value, which defines the coordinate system for other attributes of gradients and patterns .

The allowable values are userSpaceOnUse | objectBoundingBox

public method

ParseCursor(String,TCursor,Boolean)

Parses the input string for a cursor. The allowable values are [ [ funciri,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw- resize | s-resize | w-resize| text | wait | help ] ] | inherit

public method

ParseDashArray(String,String,TSVGPen,TSVGStyleProperties,TSVGUnitFactors)

Parses the input string for a dash array value and sets the Pen properties

public method

ParseDisplay(String,Boolean,Boolean)

Parses the input string for a display value. The ‘display’ property only affects the direct rendering of a given element, whereas it does not prevent elements from being referenced by other elements.

The allowable values are none | inherit | other where other may be any keyword (always translated to visible=true)

public method

ParseFillRule(String,TSVGFillRule,Boolean)

Parses the input string for a fill rule value, which indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non- intersecting path, it is intuitively clear what region lies " inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.

The allowable inputs are nonzero | evenodd | inherit
 

public method

ParseFontFamily(String,String,Boolean)

Parses the input string for a font family name value, which indicates which font family is to be used to render the text, specified as a prioritized list of font family names and/or generic family names

The allowable inputs are
[[ family-name | generic-family ],]* [family-name | generic-family] | inherit

public method

ParseFontSize(String,Single,Single,Boolean,TSVGUnitFactors)

Parses the input string for a font size value, which refers to the size of the font from baseline to baseline when multiple lines of text are set solid in a multiline layout environment.

The allowable inputs are absolute-size | relative-size | length | percentage | inherit

public method

ParseFontStyle(String,TFontStyles,Boolean)

Parses the input string for a font style value, which specifies whether the text is to be rendered using a normal, italic or oblique face.

The allowable inputs are normal | italic | oblique | inherit
 

public method

ParseFontWeight(String,TFontStyles,TFontStyles,Boolean)

Parses the input string for a font weight value, e.g., the boldness or lightness of the glyphs used to render the text, relative to other fonts in the same font family.

The allowable values are normal | bold | bolder | lighter | 100 | 200 | 300
| 400 | 500 | 600 | 700 | 800 | 900 | inherit

public method

ParseGradientSpread(String,TSVGGradientSpread)

Parses the input string for a gradient spread value, which indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.

The allowable values are pad | reflect | repeat

public method

ParseLength(IXMLNode,String,Single,Boolean,TSVGUnitFactors)

Overloaded. Parses the XML attribute with the specified name into a length

public method

ParseLength(IXMLNode,String,Single,TSVGUnitFactors)

Overloaded. Parses the XML attribute with the specified name into a length value.

public method

ParseLength(String,Single,Boolean,TSVGUnitFactors)

Overloaded. Parses the input string into a length value.

public method

ParseLength(String,Single,TSVGUnitFactors)

Overloaded. Parses the input string into a length value.

public method

ParseLineCap(String,TSVGStrokeCap,Boolean)

Parses the input string into a line cap value, which specifies the shape to be used at the end of open subpaths when they are stroked.

The allowable values are butt | round | square | inherit

public method

ParseLineJoin(String,TSVGStrokeJoin,Boolean)

Parses the input string into a line cap value, which specifies the shape to be used at the corners of paths or basic shapes when they are stroked.

The allowable values are miter | round | bevel | inherit

public method

ParseMarkerUnit(String,TSVGMarkerUnit)

Parses the input string for a marker unit value, which defines the coordinate system for attributes ‘markerWidth’, ‘ markerHeight’ and the contents of the ‘marker’.

The allowable values are strokeWidth | userSpaceOnUse

public method

ParseMatrix(String)

Parses the input string for a matrix definition: 6 numbers. Note that numbers can be separated by commas, spaces, or +/- (e. g. , the string '100+99' is two numbers and is valid)
 

public method

ParseOverflow(String,Boolean,Boolean)

Parses the input string into a overflow value, which specifies whether the content of a block-level element is clipped when it overflows the element's box (which is acting as a containing block for the content).

The allowable values are visible | hidden | scroll | auto | inherit

public method

ParsePercent(IXMLNode,String,Boolean,Single,TSVGUnitFactors)

Overloaded. Parses the XML attribute with the specified name into a percentage or length value.

public method

ParsePercent(IXMLNode,String,Single,Boolean,TSVGUnitFactors,Single,Single)

Overloaded. Parses the XML attribute with the specified name into a percentage or length value.

public method

ParsePercent(IXMLNode,String,Single,TSVGUnitFactors,Single,Single)

Overloaded. Parses the XML attribute with the specified name into a percentage or length value.

public method

ParsePercent(String,Boolean,Single,TSVGUnitFactors)

Overloaded. Parses the input string into a percentage or length value.

public method

ParsePercent(String,Single,Boolean,Boolean,TSVGUnitFactors)

Overloaded. Parses the input string into a percentage or length value.

public method

ParsePercent(String,Single,Boolean,TSVGUnitFactors,Single,Single)

Overloaded. Parses the input string into a percentage or length value.

public method

ParsePercent(String,Single,TSVGUnitFactors,Single,Single)

Overloaded. Parses the input string into a percentage or length value.

public method

ParsePercents(String,TSVGUnitFactors,Single,Single)

Parses the input string into an array of percentage or length values.

public method

ParsePoints(IXMLNode,String)

Overloaded. Parses the XML attribute with the specified name into an array of points.

public method

ParsePoints(String)

Overloaded. Parses the string into an array of points

public method

ParseRect(String,TSVGUnitFactors)

Parses the input string into a rectangle using a string of 4 concatenated lengths: left top width height. The lengths may be separated by commas or spaces.

public method

ParseRotateMatrix(String)

Parses the input string for a rotation matrix definition ( rotate-angle [cx cy]), which specifies a rotation by degrees about a given point.

If optional parameters cx and cy are not supplied, the rotate is about the origin of the current user coordinate system. The operation corresponds to the matrix [cos(a) sin(a) -sin(a) cos( a) 0 0].

If optional parameters cx and cy are supplied, the rotate is about the point (cx, cy). The operation represents the equivalent of the following specification: translate(cx, cy)

public method

ParseScaleMatrix(String)

Parses the input string for a scale matrix definition ( sx [sy]), which specifies a scale operation by sx and sy. If sy is not provided, it is assumed to be equal to sx

public method

ParseShapeRendering(String,TSVGShapeRendering,Boolean)

Parses the input string for a shape rendering, which provides a hint to the SVG library about what tradeoffs to make as it renders vector graphics elements such as path elements and basic shapes such as circles and rectangles. The allowable values are auto | optimizeSpeed | crispEdges | geometricPrecision | inherit
 
 

public method

ParseSingles(String,TSVGUnitFactors)


public method

ParseSkewXMatrix(String)

Parses the input string for a skew x matrix definition ( skew-angle), which specifies a skew transformation along the x-axis.

public method

ParseSkewYMatrix(String)

Parses the input string for a skew y matrix definition ( skew-angle), which specifies a skew transformation along the y-axis.

public method

ParseString(IXMLNode,String,String)

Parses the XML node with the specified name into a string

public method

ParseStringList(TStrings,String,String)

Parses an input string into a list of strings separated by the delimiters

public method

ParseTextAnchor(String,TSVGTextAlign,Boolean)

Parses the input string for a text anchor value, which is used to align (start-, middle- or end-alignment) a string of text relative to a given point.

The allowable values are start | middle | end | inherit

public method

ParseTextDecoration(String,TSVGFont,Boolean)

Parses the input string for a text decoration value, which describes decorations that are added to the text of an element. The RSCL does not support the blink value.

The allowable values are none | [ underline || overline || line- through || blink ] | inherit

public method

ParseTextRendering(String,TSVGTextRendering,Boolean)

Parses the input string for a text rendering, which provides a hint to the SVG library about what tradeoffs to make as it renders text. The allowable values are auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit

public method

ParseTransformation(String)

Parses the input string for a transformation matrix. The value of the ‘transform’ attribute is a transform-list , which is defined as a list of transform definitions, which are applied in the order provided. The individual transform definitions are separated by whitespace and/or a comma.

public method

ParseTranslateMatrix(String)

Parses the input string for a translation matrix definition ( tx [ty]), which specifies a translation by tx and ty. If ty is not provided, it is assumed to be zero

public method

ParseURI(String)

Overloaded. Parses the input string for a valid url/uri value ('uri(# ref)' or 'url(#ref)')

public method

ParseURI(String,String,Boolean)

Overloaded. Parses the input string for a valid url/uri value ('uri(# ref)' or 'url(#ref)')

public method

ParseVisible(String,Boolean,Boolean)

Parses the input string for a visible value.

The allowable values are visible | hidden | collapse | inherit

public method

RemoveComments(String)

Removes comments (/* ... */) from a string

public method

ScaleSize(Single,Single,Single,Single,TSVGImageWrapMode,Single)

Returns the size needed for a bitmap which can fit the SVG using its width and height, wrapmode, and scalefactor. The DefaultWidth and DefaultHeight parameters specify the minimum size.

public method

SetColorOpacity(TAlphaColor,Single)

Helper function for setting the alpha component of a TAlphaColor to the specified opacity

public method

SplitNumbers(string,string)

Splits an input string into a dynamic array of strings (which are assumed to be numbers). The SplitNumbers function uses the delimiters plus the special delimiters of '+' and '-' to split the string (e. g. , the string '100+99' is two numbers and is valid)

public method

TokenizeSelector(String)

Tokenizes the string into selector tokens used by CSS2 selectors

Top

expandingSee Also

Reference

Comments (0)

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