java.lang.Object
com.aspose.words.ImageSize
public class ImageSize
- extends java.lang.Object
Contains information about image size and resolution.
- See Also:
- ImageData.ImageSize
Constructor Summary |
ImageSize(int widthPixels, int heightPixels)
Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.
|
ImageSize(int widthPixels, int heightPixels, double horizontalResolution, double verticalResolution)
Initializes width, height and resolution to the given values.
|
ImageSize
public ImageSize(int widthPixels, int heightPixels)
-
Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.
- Parameters:
widthPixels
- Width in pixels.heightPixels
- Height in pixels.
ImageSize
public ImageSize(int widthPixels, int heightPixels, double horizontalResolution, double verticalResolution)
-
Initializes width, height and resolution to the given values.
- Parameters:
widthPixels
- Width in pixels.heightPixels
- Height in pixels.horizontalResolution
- Horizontal resolution in DPI.verticalResolution
- Vertical resolution in DPI.
Property Getters/Setters Detail |
getHeightPixels | |
public int getHeightPixels()
|
-
Gets the height of the image in pixels.
getHeightPoints | |
public double getHeightPoints()
|
-
Gets the height of the image in points. 1 point is 1/72 inch.
getHorizontalResolution | |
public double getHorizontalResolution()
|
-
Gets the horizontal resolution in DPI.
getVerticalResolution | |
public double getVerticalResolution()
|
-
Gets the vertical resolution in DPI.
getWidthPixels | |
public int getWidthPixels()
|
-
Gets the width of the image in pixels.
getWidthPoints | |
public double getWidthPoints()
|
-
Gets the width of the image in points. 1 point is 1/72 inch.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.