ImageSaveOptions Class
Contents
[
Hide
]ImageSaveOptions class
Raster output. Media type defaults to Screen.
public sealed class ImageSaveOptions : SaveOptions
Constructors
| Name | Description |
|---|---|
| ImageSaveOptions() | Image options with the defaults. |
Properties
| Name | Description |
|---|---|
| Format { get; set; } | The codec. Default Png. Jpeg has no alpha: transparent pixels are composited onto white; Png and Webp keep alpha. Page files are named .png, .jpg or .webp. |
| HorizontalResolution { get; set; } | Horizontal pixel density, dots per inch. Default 96 (one pixel per CSS px). |
| Mode { get; set; } | Viewport (default) clips to the viewport; FullContent grows to the content; PrintPages writes one image per page, needs Print media and a stream provider. |
| Quality { get; set; } | Lossy codec quality, 1 (smallest) to 100 (best). Default 100. Jpeg encodes at this quality; Webp is lossless at 100 and lossy below it; Png ignores it. |
| VerticalResolution { get; set; } | Vertical pixel density, dots per inch. Default 96. |
| Configuration { get; set; } | The environment; null means defaults for a one-shot conversion. Must be null on RenderDocument.Save, which uses the loaded one. (Inherited from SaveOptions.) |
| Css { get; } | Media type and viewport. Getter-only. (Inherited from SaveOptions.) |
| PageSetup { get; } | Page geometry and pagination. Getter-only. (Inherited from SaveOptions.) |
See Also
- namespace Aspose.Css.Saving
- assembly Aspose.CSS