Skip to main content

JPEG colour image to a gray scale image??

1 reply [Last post]
hello23
Offline
Joined: 2008-02-28
Points: 0

does anyone know the code for converting a jpeg colour image into a gray scale image???

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trembovetski
Offline
Joined: 2003-12-31
Points: 0

Create a gray scale image (new BufferedImage(w,h,BufferedImage.TYPE_BYTE_GRAY)),
then use drawImage to copy your image into it.

Dmitri