com.aspose.html.dom.canvas

Interface IImageData



  • @DOMNoInterfaceObjectAttribute
    public interface IImageData

    Creates an ImageData object from a given Uint8ClampedArray and the size of the image it contains. If no array is given, it creates an image of a black rectangle.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      byte[] getData()
      Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).
      long getHeight()
      Is an unsigned long representing the actual height, in pixels, of the ImageData.
      long getWidth()
      Is an unsigned long representing the actual width, in pixels, of the ImageData.
    • Method Detail

      • getWidth

        @DOMNameAttribute(name="width")
        long getWidth()

        Is an unsigned long representing the actual width, in pixels, of the ImageData.

      • getHeight

        @DOMNameAttribute(name="height")
        long getHeight()

        Is an unsigned long representing the actual height, in pixels, of the ImageData.

      • getData

        @DOMNameAttribute(name="data")
        byte[] getData()

        Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).