Right, Erel, but if you assign an ImageView to a canvas for drawing, then scaling would be helpful,
such as when you plot geo locations on a map with an ImageView scaled as
ImageView1.Scale(-180,90,180,-90).
Sorry, I doubt it, at least I do not know how this could work in analogy to the convenience of "Scale".
Anyway, it's not that a crucial issue. I am always looking for means that help shorten und simplify source codes.
I'm afraid that you don't speek of the same kind of scaling.
dip scales the objects on the screen.
alfcen means having a physical scale for the pixels.
Having an ImageView of 100dip by 100dip.
Setting ImageView.Scale((-180,90,180,-90)
means that the x value of pixel(0,0)=-180 and the y value = 90
and the x value of pixel(99dip,99dip)=180 and the y value = -90
I remeber having used the ScaleMode feature in VB6 too.
Height/Width 100 pixels
ScaleHeight= 180 ScaleWidth=360, physical unit
Thanks a lot for monitoring this thread and for your help, Klaus.
Setting ImageView.Scale((-180,90,180,-90)
means that the x value of pixel(0,0)=-180 and the y value = 90
and the x value of pixel(99dip,99dip)=180 and the y value = -90