Package com.ironsoftware.ironpdf.image
Class DrawImageOptions
- java.lang.Object
- 
- com.ironsoftware.ironpdf.image.DrawImageOptions
 
- 
 public class DrawImageOptions extends Object Defines options available to the developers when drawing images onto aPdfDocument.
- 
- 
Constructor SummaryConstructors Constructor Description DrawImageOptions(int x, int y, int desired_width, int desired_height)Draw image optionsDrawImageOptions(int x, int y, int desired_width, int desired_height, PageSelection pageSelection)Draw image options
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Gets height (Pixel).PageSelectiongetPageSelection()Gets page selection.intgetWidth()Gets width (Pixel).intgetX()Gets X coordinate.intgetY()Gets Y coordinate.voidsetHeight(int height)Sets height (Pixel).voidsetPageSelection(PageSelection pageIndexes)Sets page selection.voidsetWidth(int width)Sets width (Pixel).voidsetX(int x)Sets X coordinate.voidsetY(int y)Sets Y coordinate.
 
- 
- 
- 
Constructor Detail- 
DrawImageOptionspublic DrawImageOptions(int x, int y, int desired_width, int desired_height)Draw image options- Parameters:
- x- X coordinate in px
- y- Y coordinate in px
- desired_width- Desired width
- desired_height- Desired Height
 
 - 
DrawImageOptionspublic DrawImageOptions(int x, int y, int desired_width, int desired_height, PageSelection pageSelection)Draw image options- Parameters:
- x- X coordinate in px
- y- Y coordinate in px
- desired_width- Desired width
- desired_height- Desired Height
- pageSelection- PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().
 
 
- 
 - 
Method Detail- 
getPageSelectionpublic PageSelection getPageSelection() Gets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Returns:
- the page selection
 
 - 
setPageSelectionpublic void setPageSelection(PageSelection pageIndexes) Sets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Parameters:
- pageIndexes- the page indexes
 
 - 
getXpublic int getX() Gets X coordinate. Default is 0.- Returns:
- the x
 
 - 
setXpublic void setX(int x) Sets X coordinate. Default is 0.- Parameters:
- x- the x
 
 - 
getYpublic int getY() Gets Y coordinate. Default is 0.- Returns:
- the y
 
 - 
setYpublic void setY(int y) Sets Y coordinate. Default is 0.- Parameters:
- y- the y
 
 - 
getWidthpublic int getWidth() Gets width (Pixel).- Returns:
- the width
 
 - 
setWidthpublic void setWidth(int width) Sets width (Pixel).- Parameters:
- width- the width
 
 - 
getHeightpublic int getHeight() Gets height (Pixel).- Returns:
- the height
 
 - 
setHeightpublic void setHeight(int height) Sets height (Pixel).- Parameters:
- height- the height
 
 
- 
 
-