Packages

 

com.aspose.cad.fileformats.bmp

Class BitmapInfoHeader

  • Direct Known Subclasses:
    BitmapV4Header


    public class BitmapInfoHeader
    extends Object

    Specifies bitmap info header v3.

    • Field Detail

      • BITMAP_INFO_HEADER_SIZE

        public static final int BITMAP_INFO_HEADER_SIZE

        The bitmap information header size v3

        See Also:
        Constant Field Values
      • BITMAP_INFO_HEADER_SIZE_V_4

        public static final int BITMAP_INFO_HEADER_SIZE_V_4

        The bitmap information header size v4

        See Also:
        Constant Field Values
      • BITMAP_INFO_HEADER_SIZE_V_5

        public static final int BITMAP_INFO_HEADER_SIZE_V_5

        The bitmap information header size v5

        See Also:
        Constant Field Values
    • Constructor Detail

      • BitmapInfoHeader

        public BitmapInfoHeader()

        Initializes a new instance of the BitmapInfoHeader class.

      • BitmapInfoHeader

        public BitmapInfoHeader(byte[] bytes)

        Initializes a new instance of the BitmapInfoHeader class.

        Parameters:
        bytes - The bytes.
    • Method Detail

      • getHeaderSize

        public long getHeaderSize()

        Gets size of this structure in bytes.

        Returns:
        The size of header of bitmap info in bytes.
      • setHeaderSize

        public void setHeaderSize(long value)

        Sets size of this structure in bytes.

        Parameters:
        value - The size of header of bitmap info in bytes.
      • getBitmapWidth

        public int getBitmapWidth()

        Gets bitmap width.

        Returns:
        A bitmap width
      • setBitmapWidth

        public void setBitmapWidth(int value)

        Sets bitmap width.

        Parameters:
        value - A bitmap width
      • getBitmapHeight

        public int getBitmapHeight()

        Gets bitmap height.

        Returns:
        A bitmap height
      • setBitmapHeight

        public void setBitmapHeight(int value)

        Sets bitmap height.

        Parameters:
        value - The bitmap height
      • getBitmapPlanes

        public int getBitmapPlanes()

        Gets number of planes.

        Returns:
        A number of planes
      • setBitmapPlanes

        public void setBitmapPlanes(int value)

        Sets number of planes.

        Parameters:
        value - A number of planes
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets bits per pixel count.

        Returns:
        A bits per pixel count
      • setBitsPerPixel

        public void setBitsPerPixel(int value)

        Sets bits per pixel count.

        Parameters:
        value - A bits per pixel
      • getBitmapCompression

        public long getBitmapCompression()

        Gets bitmap compression.

        Returns:
        A bitmap compression
      • setBitmapCompression

        public void setBitmapCompression(long value)

        Sets bitmap compression.

        Parameters:
        value - A bitmap compression
      • getBitmapImageSize

        public long getBitmapImageSize()

        Gets specifies bitmap raw data size in bytes.

        Returns:
        A bitmap raw data size in bytes
      • setBitmapImageSize

        public void setBitmapImageSize(long value)

        Sets specifies bitmap raw data size in bytes.

        Parameters:
        value - bitmap raw data size in bytes
      • getBitmapXPelsPerMeter

        public int getBitmapXPelsPerMeter()

        Gets horizontal pixels resolution.

        Returns:
        A horizontal pixels resolution
      • setBitmapXPelsPerMeter

        public void setBitmapXPelsPerMeter(int value)

        Sets horizontal pixels resolution.

        Parameters:
        value - A horizontal pixels resolution
      • getBitmapYPelsPerMeter

        public int getBitmapYPelsPerMeter()

        Gets vertical pixels resolution.

        Returns:
        A vertical pixels resolution
      • setBitmapYPelsPerMeter

        public void setBitmapYPelsPerMeter(int value)

        Sets vertical pixels resolution.

        Parameters:
        value - A vertical pixels resolution
      • getBitmapColorsUsed

        public long getBitmapColorsUsed()

        Gets number of palette colors used.

        Returns:
        A number of palette colors used
      • setBitmapColorsUsed

        public void setBitmapColorsUsed(long value)

        Sets number of palette colors used.

        Parameters:
        value - A number of palette colors used
      • getBitmapColorsImportant

        public long getBitmapColorsImportant()

        Gets number of important palette colors.

        Returns:
        A number of important palette colors
      • setBitmapColorsImportant

        public void setBitmapColorsImportant(long value)

        Sets number of important palette colors.

        Parameters:
        value - A number of important palette colors