wood burning stoves 2.0
The moose likes Swing / AWT / SWT and the fly likes Problem while creating jpg image  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem while creating jpg image  " Watch "Problem while creating jpg image  " New topic

Problem while creating jpg image

vamsi naki
Ranch Hand

Joined: May 18, 2011
Posts: 61
i am trying to create a jpg image with some word printed like "hello world" in the image.I dont know how to change the font size of the text .I am getting the output but if i increase the size of the buffredimage the "hello world" word is hardly visible.

I have another doubt ,as to how to change the background image color.

Right now i am getting a jpg image with black background and hello world text in blue .

Darryl Burke

Joined: May 03, 2008
Posts: 5115

Hello vamsi and welcome to the Ranch!

Have you come across the 2D Graphics tutorial trail? In the getting started section, you can find examples that illlustrate how to do what you want.

luck, db
There are no new questions, but there may be new answers.
vamsi naki
Ranch Hand

Joined: May 18, 2011
Posts: 61
Thanks Darryl,i will look into the tutorials you mentioned
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46405
We usually discuss graphics in a different forum: moving discussion.
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem while creating jpg image
It's not a secret anymore!