Package org.sunflow.image.formats
Class GenericBitmap
- java.lang.Object
-
- org.sunflow.image.Bitmap
-
- org.sunflow.image.formats.GenericBitmap
-
public class GenericBitmap extends Bitmap
This is a generic and inefficient bitmap format which may be used for debugging purposes (dumping small images), when memory usage is not a concern.
-
-
Constructor Summary
Constructors Constructor Description GenericBitmap(int w, int h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
int
getWidth()
float
readAlpha(int x, int y)
Color
readColor(int x, int y)
void
save(java.lang.String filename)
void
writePixel(int x, int y, Color c, float a)
-
-
-
Method Detail
-
writePixel
public void writePixel(int x, int y, Color c, float a)
-
save
public void save(java.lang.String filename)
-
-