Class BitmapG8

java.lang.Object
org.sunflow.image.Bitmap
org.sunflow.image.formats.BitmapG8

public class BitmapG8 extends Bitmap
  • Constructor Details

    • BitmapG8

      public BitmapG8(int w, int h, byte[] data)
  • Method Details

    • getWidth

      public int getWidth()
      Specified by:
      getWidth in class Bitmap
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in class Bitmap
    • readColor

      public Color readColor(int x, int y)
      Specified by:
      readColor in class Bitmap
    • readAlpha

      public float readAlpha(int x, int y)
      Specified by:
      readAlpha in class Bitmap