com.aspose.words
Class ImageSize
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. Initalizes 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. Initalizes 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 |
getWidthPixels/setWidthPixels | |
public int getWidthPixels()
public void setWidthPixels(int value)
|
-
Width of the image in pixels.
getHeightPixels/setHeightPixels | |
public int getHeightPixels()
public void setHeightPixels(int value)
|
-
Height of the image in pixels.
getHorizontalResolution/setHorizontalResolution | |
public double getHorizontalResolution()
public void setHorizontalResolution(double value)
|
-
Horizontal resolution in DPI.
getVerticalResolution/setVerticalResolution | |
public double getVerticalResolution()
public void setVerticalResolution(double value)
|
-
Vertical resolution in DPI.
getWidthPoints | |
public double getWidthPoints()
|
-
Width of the image in points. 1 point is 1/72 inch.
getHeightPoints | |
public double getHeightPoints()
|
-
Height of the image in points. 1 point is 1/72 inch.
See Also:
Wiki - the home page for the Aspose.Words Product Documentation that includes Programmer's Guide, Knowledge Base and other articles.
Aspose.Words Support Forum - our preferred method of support.
Aspose.Words Team - contact Aspose.Words Team.