Packages

 

com.aspose.imaging.fileformats.webp

Class WebPFrameBlock

    • Constructor Detail

      • WebPFrameBlock

        public WebPFrameBlock(RasterImage rasterImage)

        Initializes a new instance of the WebPFrameBlock class.

        Parameters:
        rasterImage - The raster image.
      • WebPFrameBlock

        public WebPFrameBlock(int width,
                              int height)

        Initializes a new instance of the WebPFrameBlock class.

        Parameters:
        width - The width.
        height - The height.
    • Method Detail

      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets the image bits per pixel count.

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
      • hasAlpha

        public boolean hasAlpha()

        Gets a value indicating whether this instance has alpha.

        Overrides:
        hasAlpha in class RasterImage
        Returns:
        true if this instance has alpha; otherwise, false.
      • getDuration

        public short getDuration()

        Gets or sets the frame duration.

        Specified by:
        getDuration in interface IFrame
        Returns:
        The duration.
      • setDuration

        public void setDuration(short value)

        Gets or sets the frame duration.

        Specified by:
        setDuration in interface IFrame
        Parameters:
        value - The duration.
      • getLeft

        public short getLeft()

        Gets or sets the frame position left.

        Specified by:
        getLeft in interface IFrame
        Returns:
        The left.
      • setLeft

        public void setLeft(short value)

        Gets or sets the frame position left.

        Specified by:
        setLeft in interface IFrame
        Parameters:
        value - The left.
      • getTop

        public short getTop()

        Gets or sets the frame position top.

        Specified by:
        getTop in interface IFrame
        Returns:
        The top.
      • setTop

        public void setTop(short value)

        Gets or sets the frame position top.

        Specified by:
        setTop in interface IFrame
        Parameters:
        value - The top.