类 Bitmap


  • public class Bitmap
    extends Object
    Binary bitmap image
    作者:
    Chan Chung Kwong
    • 构造器详细资料

      • Bitmap

        public Bitmap​(byte[] data,
                      int width,
                      int height)
        Create a image
        参数:
        data - pixels of the image where black is marked 0
        width - width
        height - height
      • Bitmap

        public Bitmap​(BufferedImage image)
        Create a image
        参数:
        image - source of pixels
    • 方法详细资料

      • getData

        public byte[] getData()
        返回:
        pixels
      • getHeight

        public int getHeight()
        返回:
        height
      • getWidth

        public int getWidth()
        返回:
        width