Package com.ironsoftware.ironpdf.image
Class DrawImageOptions
java.lang.Object
com.ironsoftware.ironpdf.image.DrawImageOptions
Defines options available to the developers when drawing images onto a 
PdfDocument.- 
Constructor SummaryConstructorsConstructorDescriptionDrawImageOptions(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 SummaryModifier and TypeMethodDescriptionintGets height (Pixel).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 Details- 
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 Details- 
getPageSelectionGets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Returns:
- the page selection
 
- 
setPageSelectionSets 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
 
 
-