Packages

 

com.aspose.imaging.fileformats.apng

Class ApngFrame

    • 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.
      • getFrameTime

        public final int getFrameTime()

        Gets the frame duration.

        Specified by:
        getFrameTime in interface IAnimationFrame
        Returns:
        the frame duration.
      • setFrameTime

        public final void setFrameTime(int value)

        Sets the frame duration.

        Parameters:
        value - the frame duration.
      • getFrameTop

        public final int getFrameTop()

        Gets the frame top offset.

        Specified by:
        getFrameTop in interface IAnimationFrame
        Returns:
        the frame top offset.
      • getFrameLeft

        public final int getFrameLeft()

        Gets the frame left offset.

        Specified by:
        getFrameLeft in interface IAnimationFrame
        Returns:
        the frame left offset.
      • hasTransparentColor

        public boolean hasTransparentColor()

        Gets a value indicating whether image has transparent color.

        Overrides:
        hasTransparentColor in class RasterImage
        Returns:
        a value indicating whether image has transparent color.
      • setTransparentColor

        public void setTransparentColor(boolean value)

        A value indicating whether image has transparent color.

        Overrides:
        setTransparentColor in class RasterImage
        Parameters:
        value - a value indicating whether image has transparent color.
      • hasAlpha

        public boolean hasAlpha()

        Get a value indicating whether this instance has alpha.

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

        public void setTransparentColor(Color value)

        The transparent color.

        Overrides:
        setTransparentColor in class RasterImage
        Parameters:
        value - the transparent color.
      • hasBackgroundColor

        public boolean hasBackgroundColor()

        Gets a value indicating whether has background color.

        Overrides:
        hasBackgroundColor in class Image
        Returns:
        a value indicating whether has background color.
      • setBackgroundColor

        public void setBackgroundColor(boolean value)

        A value indicating whether has background color.

        Overrides:
        setBackgroundColor in class Image
        Parameters:
        value - a value indicating whether has background color.
      • getBackgroundColor

        public Color getBackgroundColor()

        Gets the background color.

        Overrides:
        getBackgroundColor in class Image
        Returns:
        the background color.
      • setBackgroundColor

        public void setBackgroundColor(Color value)

        The background color.

        Overrides:
        setBackgroundColor in class Image
        Parameters:
        value - the background color.