• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Graphics2D ??? help

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have some principal question to this Graphics2D class:

It seems, that the use of this class transforms my drawing in some way.
Could this be possible?

I was reading a little around in the API-documentation and there was something about this AffineTransform class and that my Graphcis2D context
uses a default instance of that.

I would like to draw 1 : 1, so , like I give the coordiantes to my function.

Does somebody knows something about this?
[ August 11, 2004: Message edited by: Raschin Ghanad ]
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the only thing i can offer on this topic is this tidbit: regardless of
what points/coordinates you want to draw, the image will be rendered onto a graphics device - typically the default screen device, but otherwise a device you specify (eg. a printer device w certain resolution)

if the rendered image lacks the resolution you desire, you do have to perform the image transformation yourself to fix it. for example, the same image renders differently to a screen device than a printer device because the underlying device resolution differs.

On second part of your question, the default AffineTransform is supposed to be the identity transform, which - by definition - won't alter your image... You can try:

to double-check this

hth
[ August 17, 2004: Message edited by: clio katz ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic