Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i increase the pen thickness with out using java 2D API

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can i increase the pen thickness with out using java 2D API
for drawing a line.
any answers,
thanks in advance,
ravi
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, not really... the functionality for drawing with different thicknesses is not built into the regular AWT API... the only way to fake it is to draw multiple copies of whatever you are drawing shifted one pixel away from the previous one.

-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic