Two Laptop Bag*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem while creating jpg image  " Watch "Problem while creating jpg image  " New topic
Author

Problem while creating jpg image

vamsi naki
Ranch Hand

Joined: May 18, 2011
Posts: 46
Hi,
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
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

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: 46
Thanks Darryl,i will look into the tutorials you mentioned
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
We usually discuss graphics in a different forum: moving discussion.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while creating jpg image
 
Similar Threads
java.lang.IllegalArgumentException: im == null!
Problem with creating a BufferedImage and save it as bmp file
Problem with ImageIO.write
Create and Save Image..
Problem running Servlet