Packages

 

com.aspose.imaging.fileformats.bmp

Class BitmapInfoHeader

    • Method Detail

      • getBitmapCompression

        public long getBitmapCompression()

        Gets bitmap compression.

        Returns:
        bitmap compression.
      • setBitmapCompression

        public void setBitmapCompression(long value)

        Sets bitmap compression.

        Parameters:
        value - bitmap compression.
      • getBitmapImageSize

        public long getBitmapImageSize()

        Gets specifies bitmap raw data size in bytes.

        Returns:
        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:
        horizontal pixels resolution.
      • setBitmapXPelsPerMeter

        public void setBitmapXPelsPerMeter(int value)

        Gets or sets horizontal pixels resolution.

        Parameters:
        value - horizontal pixels resolution.
      • getBitmapYPelsPerMeter

        public int getBitmapYPelsPerMeter()

        Gets or sets vertical pixels resolution.

        Returns:
        vertical pixels resolution.
      • setBitmapYPelsPerMeter

        public void setBitmapYPelsPerMeter(int value)

        Gets or sets vertical pixels resolution.

        Parameters:
        value - vertical pixels resolution.
      • getBitmapColorsUsed

        public long getBitmapColorsUsed()

        Gets number of palette colors used.

        Returns:
        number of palette colors used.
      • setBitmapColorsUsed

        public void setBitmapColorsUsed(long value)

        Gets or sets number of palette colors used.

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

        public long getBitmapColorsImportant()

        Gets or sets number of important palette colors.

        Returns:
        number of important palette colors.
      • setBitmapColorsImportant

        public void setBitmapColorsImportant(long value)

        Gets or sets number of important palette colors.

        Parameters:
        value - number of important palette colors.
      • getExtraBitMasks

        public int[] getExtraBitMasks()

        Gets or sets the extra bit masks. Present only in case the DIB header is the BITMAPINFOHEADER and the BitmapCompression is set to either BitmapCompression.Bitfields (RGB) or BitmapCompression.AlphaBitfields (RGBA).

        Returns:
        the extra bit masks.
      • setExtraBitMasks

        public void setExtraBitMasks(int[] value)

        Gets or sets the extra bit masks. Present only in case the DIB header is the BITMAPINFOHEADER and the BitmapCompression is set to either BitmapCompression.Bitfields (RGB) or BitmapCompression.AlphaBitfields (RGBA).

        Parameters:
        value - the extra bit masks.
      • write

        public static void write(StreamContainer stream,
                                 BitmapInfoHeader fileHeader)

        Writes the specified stream.

        Parameters:
        stream - The stream.
        fileHeader - The file header.