ImageSize
Overview
ImageSize is a class in Aspose.Words FOSS for .NET.
Contains information about image size and resolution.
This class provides 2 methods for working with ImageSize objects in .NET programs.
Available methods include: ImageSize.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: HeightPixels, HeightPoints, HorizontalResolution, VerticalResolution, WidthPixels, WidthPoints.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
WidthPixels | int | Read | Gets the width of the image in pixels. |
HeightPixels | int | Read | Gets the height of the image in pixels. |
HorizontalResolution | double | Read | Gets the horizontal resolution in DPI. |
VerticalResolution | double | Read | Gets the vertical resolution in DPI. |
WidthPoints | double | Read | Gets the width of the image in points. |
HeightPoints | double | Read | Gets the height of the image in points. |
Methods
| Signature | Description |
|---|---|
ImageSize(widthPixels: int, heightPixels: int) | Initializes width and height to the given values in pixels. |
ImageSize(widthPixels: int, heightPixels: int, horizontalResolution: double, verticalResolution: double) | Initializes width, height and resolution to the given values. |