Skip to main content

TdxSmartGlyph.SourceHeight Property

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

Declaration

property SourceHeight: Integer read; write;

Property Value

Type
Integer

Remarks

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

Assign a new SourceHeight value to upscale or downscale the displayed glyph vertically. To revert the glyph to the stored image’s original height, set the SourceHeight 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 SourceHeight property value is 0.

See Also