• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Problem while creating jpg image

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .




 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vamsi naki
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Darryl,i will look into the tutorials you mentioned
 
Marshal
Posts: 67330
256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We usually discuss graphics in a different forum: moving discussion.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!