ImageSize
Overview
ImageSize is a class in Aspose.Words FOSS for Java.
Contains information about image size and resolution.
Edition status of its 13 listed members (a property and its accessor methods are listed separately, overloads once): 13 not yet exercised by a verified example.
This class declares 8 methods for ImageSize objects in Java programs.
Available methods include: ImageSize, getHeightPixels, getHeightPoints, getHorizontalResolution, getVerticalResolution, getWidthPixels, getWidthPoints.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java 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. |
getWidthPixels() → int | Gets the width of the image in pixels. |
getHeightPixels() → int | Gets the height of the image in pixels. |
getHorizontalResolution() → double | Gets the horizontal resolution in DPI. |
getVerticalResolution() → double | Gets the vertical resolution in DPI. |
getWidthPoints() → double | Gets the width of the image in points. |
getHeightPoints() → double | Gets the height of the image in points. |