-
Fit to Screen
Hi guys,
I have a series of cooridnates which are to be printed out to the picture control in solid line. (vector image)
I wan to implment a feature like fit to screen so that a small image will be fit nicely to the size of my picture control. May i know how to do it?
-
try scaling each coordinate:
XScale = (NewWidth) / (OriginalWidth)
YScale = (NewHeight) / (OriginalHeight)
NewX = X * XScale
NewY = Y * YScale
I wrote that off the top of my head, so you may need to swap the new and original sizes.