how to mask out an image pixel in java

V

vaneric

hi
i am looking for a way to zero out a set of pixels in a particular
region in an image.Is there any way to do this using jdk or jai ?

i need to do some geometrical orientations on an image.(like rotating
the image about an axis thru its centre).can someone suggest an
opensrc api to do this?
thanks
eric
 
J

Jim

hi
i am looking for a way to zero out a set of pixels in a particular
region in an image.Is there any way to do this using jdk or jai ?

i need to do some geometrical orientations on an image.(like rotating
the image about an axis thru its centre).can someone suggest an
opensrc api to do this?
thanks
eric

Get the images' graphics and use clearRect or fillPolygon for an
irregular space

Look at Graphics2D and AffineTransform.

and have a look at

http://www.java2s.com/Code/Java/2D-Graphics-GUI/TransformTranslationandRotation.htm

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top