Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Zoom a 2D graphic object?  RSS feed

 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can zoom a 2D graphic object by scale x,y coordinates.
For instance, a rectangle will be enlarged to double size by double its coordinates,
My question is to seek the idea of keeping the object size unchanged but zoom the inside detail?
Just like Mapquest,click zoom button more details will be clearly seen but the frame size unchanged?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of object are you talking about?

A map can either be an image (in which case there are limits in how far it can be magnified without losing quality), or a vector representation of one (which is amenable to scaling without loss of quality).
 
Shoumin Li
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
keeping the object size unchanged but zoom the inside detail?
I think it's a easy thing:
You just need change the zoomed source from the object size
to the area you selected(inside detail).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!