Click or drag to resize

ImageSaveOptionsWidth Property

Gets or sets the image width in pixels.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public double Width { get; set; }

Property Value

Type: Double
The image width in pixels.

If both Width and Height are not specified, then image size will be equal to the page size.

If only one of the Width or Height is specified, then the specified dimension will be respected and other dimension will be calculated so that original aspect ratio is maintained.

If both Width and Height are specified, then both specified dimensions will be respected (which may result in non-uniformly scaled image, if aspect ratio is not equal to the original one.

See Also