Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Nov 13, 2008
May 06, 2012 08:50:44
How to show just part of image - if I want to cut my image in 4x4 squares? And I want to show only a single square?
Is there a net way to do it?
--Always, Grega from Peace refuge
Joined: Oct 27, 2005
May 06, 2012 09:23:19
You can use
// to crop Image image ImageFilter filter = new CropImageFilter(0, 0, 50, 50); FilteredImageSource source = new FilteredImageSource(image.getSource(), filter); Image cropped = Toolkit.getDefaultToolkit().createImage(source);
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Don't get me started about those stupid
subject: java images
Modifying the ImagePicker Controller
img tag does not display image
Writing Image Bytes on Response Stream
how to remove unwanted pixels from image
Adjusting image size to image label
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013