SvgParameters

SvgParameters class

Namespace: Aspose.Barcode.Generation

SVG parameters.

Constructors

NameDescription
__construct

Methods

NameStaticDescription
isExplicitSizeInPixelsNoDoes SVG image contain explicit size in pixels (recommended) Default value: true.
isTextDrawnInTextElementNoDoes SVG image contain text as text element rather than paths (recommended) Default value: true.
setExplicitSizeInPixelsNoDoes SVG image contain explicit size in pixels (recommended) Default value: true.
setTextDrawnInTextElementNoDoes SVG image contain text as text element rather than paths (recommended) Default value: true.

Properties

NameRead/WriteDescription
SvgColorModeRead/WritePossible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through “fill-opacity” parameter

SvgParameters__construct(SvgParametersDTO $svgParametersDto)

ParameterTypeDescription
$svgParametersDtoSvgParametersDTO

isExplicitSizeInPixelsisExplicitSizeInPixels()

Does SVG image contain explicit size in pixels (recommended) Default value: true.

isTextDrawnInTextElementisTextDrawnInTextElement()

Does SVG image contain text as text element rather than paths (recommended) Default value: true.

setExplicitSizeInPixelssetExplicitSizeInPixels(bool $explicitSizeInPixels)

Does SVG image contain explicit size in pixels (recommended) Default value: true.

ParameterTypeDescription
$explicitSizeInPixelsbool

setTextDrawnInTextElementsetTextDrawnInTextElement(bool $isTextDrawnInTextElement)

Does SVG image contain text as text element rather than paths (recommended) Default value: true.

ParameterTypeDescription
$isTextDrawnInTextElementbool

SvgColorMode

Access: Read/Write

Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through “fill-opacity” parameter

Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through “fill-opacity” parameter

ParameterTypeDescription
$svgColorModeint