Packages

 

com.aspose.cad.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 or 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.

        Returns:
        The JPEG options.
      • setJpegOptions

        public void setJpegOptions(JpegOptions value)

        Gets or 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.
      • getWidth

        public int getWidth()

        Gets or sets the width of thumbnail in pixels.

        Returns:
        The thumbnail width.
      • setWidth

        public void setWidth(int value)

        Gets or sets the width of thumbnail in pixels.

        Parameters:
        value - The thumbnail width.
      • getHeight

        public int getHeight()

        Gets or sets the height of thumbnail in pixels.

        Returns:
        The thumbnail height.
      • setHeight

        public void setHeight(int value)

        Gets or 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 or sets the size after compression. Used for consistency check.

        Returns:
        The size after compression.
      • getBitsPixel

        public short getBitsPixel()

        Gets or sets the bits pixel.

        Returns:
        The thumbnail bits pixel.
      • setBitsPixel

        public void setBitsPixel(short value)

        Gets or sets the bits pixel.

        Parameters:
        value - The thumbnail bits pixel.
      • getPlanesCount

        public short getPlanesCount()

        Gets or sets the planes count.

        Returns:
        The thumbnail planes count.
      • setPlanesCount

        public void setPlanesCount(short value)

        Gets or sets the planes count.

        Parameters:
        value - The thumbnail planes count.
      • getThumbnailArgb32Data

        public int[] getThumbnailArgb32Data()

        Gets or sets the 32-bit ARGB thumbnail data.

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

        public void setThumbnailArgb32Data(int[] value)

        Gets or sets the 32-bit ARGB thumbnail data.

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

        public com.aspose.cad.Color[] getThumbnailData()

        Gets or sets the thumbnail data.

        Returns:
        The thumbnail data.
      • setThumbnailData

        public void setThumbnailData(com.aspose.cad.Color[] value)

        Gets or 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.