Hi

I sent the message below earlier, but it never showed up in my mailbox (or
in the archive, but then a lot of messages don't seem to be in the archive).
Anyway, rather than send another 5K attachment, I've added the source file
to my web page, http://www.best.com/~petec (though you'll immediately be
asked to go somewhere else...)

If anyone *did* receive the earlier message, you'll probably want to make
the class public (I'd been testing it as a local class and forgot to add
'public' before posting it).

Cheers,
Pete

--
Pete Cockerell
California, USA

----- Original Message -----
From: Pete Cockerell <[EMAIL PROTECTED]>
To: Christian Hernoux <[EMAIL PROTECTED]>; 2D Mailing List
<[EMAIL PROTECTED]>
Sent: Tuesday, June 08, 1999 3:15 AM
Subject: Re: [java2d] Transform grayscale image into bnary


> Hi
>
> Attached is a BufferedImageOp implementation that implements the
> Floyd-Steinberg style of error diffusion dithering for converting images
to
> binary bitmaps. It's a bit slow for medium to large images, and could
> probably be speeded up quite a lot (e.g.a lot of the if's could be taken
out
> of the loops, and the destination pixels could be written much quicker by
> going directly to the buffer).
>
> Typical usage is:
>
> BufferedImage binaryImage = new FloydSteinbergFilterOp().filter(anImage,
> null);
>
> Cheers,
> Pete


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

Reply via email to