Skip to main content

TdxSmartGlyph.SourceWidth Property

Specifies the Smart Glyph container’s width, in pixels.

Declaration

property SourceWidth: Integer read; write;

Property Value

Type
Integer

Remarks

You can use the SourceWidth property to change the Smart Glyph container’s width without affecting the stored image. If unspecified, this property returns the current Width property value. The stored image’s on-screen width is calculated as the SourceWidth property value multiplied by the ratio between the monitor DPI and the SourceDPI property value.

Assign a new SourceWidth value to upscale or downscale the displayed glyph horizontally. To revert the glyph to the stored image’s original size, set the SourceWidth property to 0.

The SourceHeight and SourceWidth properties are particularly useful for assigning an exact display size (in pixels) to an SVG image stored in the Smart Glyph container.

The default SourceWidth property value is 0.

See Also