Table of Contents

Enum SVGImage.eSizeType

Namespace
SVGImage.SVG
Assembly
DotNetProjects.SVGImage.dll

This controls how the image is stretched to fill the control,

public enum SVGImage.eSizeType

Fields

ContentToSizeNoStretch = 1

The image is scaled to fit the control without any stretching. Either X or Y direction will be scaled to fill the entire width or height.

ContentToSizeStretch = 2

The image will be stretched to fill the entire width and height.

None = 0

The image is not scaled. The image location is translated so the top left corner of the image bounding box is moved to the top left corner of the image control.

SizeToContent = 3

The control will be resized to fit the un-scaled image. If the image is larger than the maximum size for the control, the control is set to maximum size and the image is scaled.

ViewBoxToSizeNoStretch = 4

Not the content of the image but its viewbox is scaled to fit the control without any stretching. Either X or Y direction will be scaled to fill the entire width or height.