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 Summary
ConstructorDescriptionDrawImageOptions
(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 Summary
Modifier and TypeMethodDescriptionint
Gets height (Pixel).Gets page selection.int
getWidth()
Gets width (Pixel).int
getX()
Gets X coordinate.int
getY()
Gets Y coordinate.void
setHeight
(int height) Sets height (Pixel).void
setPageSelection
(PageSelection pageIndexes) Sets page selection.void
setWidth
(int width) Sets width (Pixel).void
setX
(int x) Sets X coordinate.void
setY
(int y) Sets Y coordinate.
-
Constructor Details
-
DrawImageOptions
public DrawImageOptions(int x, int y, int desired_width, int desired_height) Draw image options- Parameters:
x
- X coordinate in pxy
- Y coordinate in pxdesired_width
- Desired widthdesired_height
- Desired Height
-
DrawImageOptions
public DrawImageOptions(int x, int y, int desired_width, int desired_height, PageSelection pageSelection) Draw image options- Parameters:
x
- X coordinate in pxy
- Y coordinate in pxdesired_width
- Desired widthdesired_height
- Desired HeightpageSelection
- PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().
-
-
Method Details
-
getPageSelection
Gets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Returns:
- the page selection
-
setPageSelection
Sets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Parameters:
pageIndexes
- the page indexes
-
getX
public int getX()Gets X coordinate. Default is 0.- Returns:
- the x
-
setX
public void setX(int x) Sets X coordinate. Default is 0.- Parameters:
x
- the x
-
getY
public int getY()Gets Y coordinate. Default is 0.- Returns:
- the y
-
setY
public void setY(int y) Sets Y coordinate. Default is 0.- Parameters:
y
- the y
-
getWidth
public int getWidth()Gets width (Pixel).- Returns:
- the width
-
setWidth
public void setWidth(int width) Sets width (Pixel).- Parameters:
width
- the width
-
getHeight
public int getHeight()Gets height (Pixel).- Returns:
- the height
-
setHeight
public void setHeight(int height) Sets height (Pixel).- Parameters:
height
- the height
-