com.aspose.pdf.devices

Class Margins



  • public final class Margins
    extends Object

    This class represents margins of an image.

    • Constructor Detail

      • Margins

        public Margins(int left,
                       int right,
                       int top,
                       int bottom)

        Initializes a new instance of the Margins class.

        Parameters:
        left - The left coordinate.
        right - The right coordinate.
        top - The top coordinate.
        bottom - The bottom coordinate.
      • Margins

        public Margins()

        Initializes a new instance of the Margins class.

    • Method Detail

      • getLeft

        public int getLeft()

        Gets the left.

        Returns:
        int value: The left.
      • setLeft

        public void setLeft(int value)

        Sets the left.

        Parameters:
        value - int value: The left.
      • getRight

        public int getRight()

        Gets the right.

        Returns:
        int value: The right.
      • setRight

        public void setRight(int value)

        Sets the right.

        Parameters:
        value - int value: The right.
      • getTop

        public int getTop()

        Gets the top.

        Returns:
        int value: The top.
      • setTop

        public void setTop(int value)

        Sets the top.

        Parameters:
        value - int value: The top.
      • getBottom

        public int getBottom()

        Gets the bottom.

        Returns:
        int value: The bottom.
      • setBottom

        public void setBottom(int value)

        Sets the bottom.

        Parameters:
        value - int value: The bottom.