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 Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
Gets height (Pixel).PageSelection
getPageSelection()
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 Detail
-
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 Detail
-
getPageSelection
public PageSelection getPageSelection()
Gets page selection. PageSelection to which the image will be drawn. Default is PageSelection.FirstPage().- Returns:
- the page selection
-
setPageSelection
public void setPageSelection(PageSelection pageIndexes)
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
-
-