Packages

 

com.aspose.imaging.fileformats.psd.resources

Class ThumbnailResource

    • Constructor Detail

      • ThumbnailResource

        public ThumbnailResource()

        Initializes a new instance of the ThumbnailResource class.

    • Method Detail

      • getJpegOptions

        public JpegOptions getJpegOptions()

        Gets the JPEG options. Suitable when thumbnail resource is saved into JPEG file format only. This option has no effect when RAW format is defined.

        Returns:
        The JPEG options.
      • setJpegOptions

        public void setJpegOptions(JpegOptions value)

        Sets the JPEG options. Suitable when thumbnail resource is saved into JPEG file format only. This option has no effect when RAW format is defined.

        Parameters:
        value - The JPEG options.
      • getFormat

        public int getFormat()

        Gets the thumbnail data format.

        Returns:
        The thumbnail data format.
      • setFormat

        public void setFormat(int value)

        Sets the thumbnail data format.

        Parameters:
        value - The thumbnail data format.
      • getWidth

        public int getWidth()

        Gets the width of thumbnail in pixels.

        Returns:
        The thumbnail width.
      • setWidth

        public void setWidth(int value)

        Sets the width of thumbnail in pixels.

        Parameters:
        value - The thumbnail width.
      • getHeight

        public int getHeight()

        Gets the height of thumbnail in pixels.

        Returns:
        The thumbnail height.
      • setHeight

        public void setHeight(int value)

        Sets the height of thumbnail in pixels.

        Parameters:
        value - The thumbnail height.
      • getWidthBytes

        public int getWidthBytes()

        Gets the row width in bytes.

        Returns:
        The row width in bytes.
      • getTotalSize

        public int getTotalSize()

        Gets the total data size.

        Returns:
        The total data size.
      • getSizeAfterCompression

        public int getSizeAfterCompression()

        Gets the size after compression. Used for consistency check.

        Returns:
        The size after compression.
      • getBitsPixel

        public short getBitsPixel()

        Gets the bits pixel.

        Returns:
        The thumbnail bits pixel.
      • setBitsPixel

        public void setBitsPixel(short value)

        Sets the bits pixel.

        Parameters:
        value - The thumbnail bits pixel.
      • getPlanesCount

        public short getPlanesCount()

        Gets the planes count.

        Returns:
        The thumbnail planes count.
      • setPlanesCount

        public void setPlanesCount(short value)

        Sets the planes count.

        Parameters:
        value - The thumbnail planes count.
      • getThumbnailArgb32Data

        public int[] getThumbnailArgb32Data()

        Gets the 32-bit ARGB thumbnail data.

        Returns:
        The 32-bit ARGB thumbnail data.
      • setThumbnailArgb32Data

        public void setThumbnailArgb32Data(int[] value)

        Sets the 32-bit ARGB thumbnail data.

        Parameters:
        value - The 32-bit ARGB thumbnail data.
      • getThumbnailData

        public Color[] getThumbnailData()

        Gets the thumbnail data.

        Returns:
        The thumbnail data.
      • setThumbnailData

        public void setThumbnailData(Color[] value)

        Sets the thumbnail data.

        Parameters:
        value - The thumbnail data.
      • getDataSize

        public int getDataSize()

        Gets the resource data size in bytes.

        Specified by:
        getDataSize in class ResourceBlock
        Returns:
        The resource data size.
      • getMinimalVersion

        public int getMinimalVersion()

        Gets the minimal required psd version.

        Specified by:
        getMinimalVersion in class ResourceBlock
        Returns:
        The minimal psd version.