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 a PdfDocument.
  • Constructor Details

    • DrawImageOptions

      public 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
    • DrawImageOptions

      public 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

    • 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