cds.image
Class BMPWriter
java.lang.Object
cds.image.BMPWriter
public final class BMPWriter
- extends java.lang.Object
BMPWritter. Write images in BMP format
Example : Writer.write(img,"image.bmp");
- Version:
- 1.0 : (6 feb 2001) creation
- Author:
- Pierre Fernique [CDS]
from BMPwritter package by Tom West www.holtsoft.com/java/extras - 1998
Method Summary |
static void |
write(java.awt.Image image,
java.io.OutputStream o)
Writes out image as a BMP files called name. |
static void |
write24BitBMP(int[] pixels,
int w,
int h,
java.io.OutputStream o)
Writes a 24-bit BMP file from the array of direct colour pixels. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BMPWriter
public BMPWriter()
write
public static void write(java.awt.Image image,
java.io.OutputStream o)
throws java.lang.Exception
- Writes out image as a BMP files called name.
- Throws:
java.lang.Exception
write24BitBMP
public static void write24BitBMP(int[] pixels,
int w,
int h,
java.io.OutputStream o)
throws java.lang.Exception
- Writes a 24-bit BMP file from the array of direct colour pixels.
- Throws:
java.lang.Exception
Copyright © 2009 UDS/CNRS