Skip to main content
A newer version of this page is available. .

ImageViewMode Enum

Specifies how an image is positioned within an image control.

Namespace: DevExpress.XtraPrinting.Drawing

Assembly: DevExpress.Printing.v18.1.Core.dll

Declaration

[ResourceFinder(typeof(ResFinder))]
[TypeConverter(typeof(EnumTypeConverter))]
public enum ImageViewMode

Members

Name Description
Clip

The image is placed in the upper-left corner of the image control. The image is clipped if it’s larger than the image control which contains it.

Stretch

The image within the image control is stretched or shrunk, as appropriate, to fit the size of the image control.

Zoom

The image is sized proportionally (without clipping), so that it best fits the image control. If the height and width ratio of the image control is the same as the image’s ratio it will be resized to exactly fit into the image control. Otherwise, the closest fitting side (height or width) of the image will be sized to the control. The other side (height or width) of the image will be sized proportionally (leaving empty space).

Related API Members

The following properties accept/return ImageViewMode values:

Remarks

Use the members of this enumeration to set the value of the PageWatermark.ImageViewMode property of the PageWatermark object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageViewMode enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also