File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes BufferedImage 1-bit-per-pixel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "BufferedImage 1-bit-per-pixel" Watch "BufferedImage 1-bit-per-pixel" New topic
Author

BufferedImage 1-bit-per-pixel

Orna Vel
Greenhorn

Joined: Jun 02, 2003
Posts: 12
I am trying to create the application with "compact" BufferedImage which uses just 1 bit per pixel. But it does not work properly - it looks like it still uses a byte per pixel. Any thoughts?


[ March 31, 2005: Message edited by: Orna Vel ]
Orna Vel
Greenhorn

Joined: Jun 02, 2003
Posts: 12
I think this code works properly:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BufferedImage 1-bit-per-pixel
 
Similar Threads
Creating an image from a byte array and a color palette
bufferd Image!
BufferedImage 1-bit-per-pixel
changing gray pixels....
Is there a better way to blend colors when painting with Graphics2D?