aspose file tools*
The moose likes Java in General and the fly likes Image Processing Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Image Processing Help" Watch "Image Processing Help" New topic
Author

Image Processing Help

Betty Reynolds
Ranch Hand

Joined: Feb 16, 2000
Posts: 111

I've designed an Applet using VAJ and am having difficulty with image processing. I'm primarily relying on beans to do most of the work, and was hoping to avoid the low level code associated with painting images.
I have a number of components already in my applet. I would like to add a series of images (gif files) that are stored within an image array in my bean. I've been using g.drawimage, but I have to generate my own code for the coordinates and it does not address the problem of what happens to the images when the window is resized. Does anyone know of any beans or combination of beans that will do the work for me? Can anyone suggest an approach? Thanks.
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Betty,
I don't know of any component that will alter graphics that you have drawn. You are responsible for all the math (location, width, height, etc) to correctly redraw your images.
You might try using JLabel with the image sent to the constructor. The JLabel will be resized by the layout but I don't think that the image itself will be resized.
Good Luck,
Manfred.
Betty Reynolds
Ranch Hand

Joined: Feb 16, 2000
Posts: 111
Thanks Manfred, but I found a way. It has to do with using the ImageGlyph constructor, but that's part of IBM's VAJ functionality, so not particularly useful information unless you're using this package. My approach still needs some refinement, but it's a good start. I probably spent as much time dinking around with the wiring as I would if I had coded and debugged it myself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Processing Help