TSvgReader.KeepAspectRatio

property KeepAspectRatio: Boolean; //read & write


This property affects how images are rendered when calling DrawImage, and only when its scaleToImage parameter = true.
By default, when SVG images are scaled and rendered to destination images, this scaling will preserve the width/height ratios of the SVG images. However, this property allows this default behavior to be overridden so, instead of scaling, the SVG image will be stretched to the destination image.

See Also

DrawImage