This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I don't know anything about Jimi, but I look at your code and you are doing this:
Have "Jimi" read an image
Create a Graphics object
Write the image to that graphics
Write some text to that graphics
Dispose of the graphics (bye-bye)
Have "Jimi" write the original image back to a file
Maybe you want to extract the image+text from the graphics and write that out to a file or something.
Ben Klug
Ranch Hand
Joined: Jan 28, 2002
Posts: 45
posted
0
Hi, sorry, Jimi is a class library for managing images from sun. Dave, I've tried to first save the image and then call dispose(). It didn't work too. thanks Ben [ September 12, 2002: Message edited by: Ben Klug ]
I've downloaded and had a look at Jimi. Looks nice, I might have to use it myself. It does look like your are over complicating things with all of the 'Frame' stuff. You probably want to do something more like this:
get Jimi to load the image
get a Graphics context for the image
write the text to the graphics context
use Jimi to save the modified Image as the required type
(close the Graphics context and any other resources)
Without playing I can't help more, but I hope this helps. Dave.
Ben Klug
Ranch Hand
Joined: Jan 28, 2002
Posts: 45
posted
0
Thanks David, I've tried to handle th Image like this:
but I get the following error:
I think the problem is not Jimi, the Problem is getting the Graphics-Object from the image.
Ben [ September 13, 2002: Message edited by: Ben Klug ] [ September 13, 2002: Message edited by: Ben Klug ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.