Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Extract Part Of GIF Image Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Extract Part Of GIF Image" Watch "Extract Part Of GIF Image" New topic
Author

Extract Part Of GIF Image

Nura Horne
Ranch Hand

Joined: Jul 26, 2001
Posts: 40
Hi,
I want to load a GIF and then extract part of it, say only the area (x,y,w,h) as an Image object. Then I can display only this part of the Image into a Graphics context for displaying. Anyone know how I can do this?
Regards,
Arun
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

There's a description of how to do this in this thread.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Extract Part Of GIF Image
 
Similar Threads
Got a solution : But still a problem !!!
Retrieving pixel data
Problem with displaying image using jsp
Can I embed a hyperlink in a GIF file?
.gif transparent backgrounds