Click or drag to resize

PdfImageShapeMaxResolution Property

Gets or sets the maximum resolution of this PdfImageShape when added to the PDF document.

Namespace:  RadPdf.Data.Document.Objects.Shapes
Assembly:  RadPdf (in RadPdf.dll) Version: 3.20.5.0 (3.20.5.0)
Syntax
public int MaxResolution { get; set; }

Property Value

Type: Int32
The integer that specifies the maximum resolution of this PdfImageShape when added to the PDF document. When added using the GUI (e.g. PdfWebControl, PdfWebControlLite), the default value is 150 for BMP and JPG images and NoMaxResolution for PNG and GIF images. when added using the PdfDocumentEditor, the default value is NoMaxResolution for all images.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe value is less than 72 or more than 2048 and not NoMaxResolution.
Remarks

If the ImageData represents an image with an original resolution greater than MaxResolution, the image will be resampled to that resolution. This value can help reduce the size of PDF data output by RAD PDF.

If set to NoMaxResolution, the image will not be resampled regardless of its resolution.

If the ImageFormat of this image is Gif or Png, setting this property to anything besides NoMaxResolution may cause transparency to be displayed incorrectly in the PDF.

See Also