Package com.ironsoftware.ironpdf.image
Class ToImageOptions
- java.lang.Object
-
- com.ironsoftware.ironpdf.image.ToImageOptions
-
public class ToImageOptions extends Object
Defines options when rasterizing (converting) an PDf to image objects and files.See:
PdfDocument.toImages(String, String, ToImageOptions)andPdfDocument.toBufferedImages(ToImageOptions options)
-
-
Constructor Summary
Constructors Constructor Description ToImageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDpi()Gets dpi.IntegergetImageMaxHeight()Gets image max height.IntegergetImageMaxWidth()Gets image max width.voidsetDpi(int dpi)Sets dpi.voidsetImageMaxHeight(Integer imageMaxHeight)Sets image max height.voidsetImageMaxWidth(Integer imageMaxWidth)Sets image max width.
-
-
-
Method Detail
-
getDpi
public int getDpi()
Gets dpi. The desired resolution of the output Images. Default is 96dpi.- Returns:
- the dpi
-
setDpi
public void setDpi(int dpi)
Sets dpi. The desired resolution of the output Images. Default is 96dpi.- Parameters:
dpi- the dpi
-
getImageMaxHeight
public Integer getImageMaxHeight()
Gets image max height. The target maximum height of the output images. Default is null.- Returns:
- the image max height
-
setImageMaxHeight
public void setImageMaxHeight(Integer imageMaxHeight)
Sets image max height. The target maximum height of the output images. Default is null.- Parameters:
imageMaxHeight- the image max height
-
getImageMaxWidth
public Integer getImageMaxWidth()
Gets image max width. The target maximum width of the output images. Default is null.- Returns:
- the image max width
-
setImageMaxWidth
public void setImageMaxWidth(Integer imageMaxWidth)
Sets image max width. The target maximum width of the output images. Default is null.- Parameters:
imageMaxWidth- the image max width
-
-