ImageViewMode Enum

Specifies how an image is positioned within an image control.

Namespace: DevExpress.XtraPrinting.Drawing

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

Declaration

[ResourceFinder(typeof(ResFinder))]
public enum ImageViewMode
<ResourceFinder(GetType(ResFinder))>
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.

See Also