Class AnylineImage


  • public class AnylineImage
    extends java.lang.Object
    • Constructor Detail

      • AnylineImage

        public AnylineImage​(byte[] data,
                            AnylineImage.ColorFormat colorFormat,
                            int width,
                            int height,
                            int bytesPerRow)
                     throws AnylineException
        Instantiates a new AnylineImage from a byte array with a given width and height.
        Parameters:
        data - byte representation of the image
        colorFormat - colorFormat of image
        width - image width
        height - image height
        Throws:
        AnylineException
      • AnylineImage

        public AnylineImage​(byte[] data,
                            int width,
                            int height)
                     throws AnylineException
        Instantiates a new AnylineImage from a byte array with a given width and height.
        Parameters:
        data - byte representation of the image
        width - image width
        height - image height
        Throws:
        AnylineException
      • AnylineImage

        public AnylineImage​(android.graphics.Bitmap bitmap)
                     throws java.lang.IllegalStateException,
                            AnylineException
        Instantiates an AnylineImage from a Bitmap.
        Parameters:
        bitmap - the image source in Bitmap format
        Throws:
        java.lang.IllegalStateException
        AnylineException