You should be able to draw into the binary image.  For example:
        BufferedImage binary = new BufferedImage(width, height,
                                                BufferedImage.TYPE_BYTE_BINARY);
        Graphics2D g2d = binary.createGraphics();
        g2d.drawImage(grayscaleImage, 0, 0, this);
        
I think there are some bugs with binary images in JDK1.2 so I'm not
sure that this will work in all cases.

jeannette

> X-Authentication-Warning: capra.eng.sun.com: amith set sender to 
[EMAIL PROTECTED] using -f
> From: "Christian Hernoux" <[EMAIL PROTECTED]>
> To: "2D Mailing List" <[EMAIL PROTECTED]>
> Subject: [java2d] Transform grayscale image into bnary
> Date: Sun, 6 Jun 1999 16:39:41 +0200
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
> 
> Hi all,
> 
> How can I transform a grayscale image into binary image 
> 
> Yours,
> 
> Christian Hernoux
> 
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to