'notes: X, Y is the place where you want the center of the image to go
' image is the image handle number
' xScale and yScale: if you want the image the same size as file image use 1, half the size use .5
' twice the size use 2... this allows you to stretch/shrink an image into a rectangle area any size
' Rotation is an angle in Degrees units: 0 degrees is due East (as file image) 270 degrees is due North....
px(0) = -W& / 2: py(0) = -H& / 2: px(1) = -W& / 2: py(1) = H& / 2
px(2) = W& / 2: py(2) = H& / 2: px(3) = W& / 2: py(3) = -H& / 2
sinr!
= SIN(-Rotation
/ 57.2957795131): cosr!
= COS(-Rotation
/ 57.2957795131) x2& = (px(i&) * cosr! + sinr! * py(i&)) * xScale + X: y2& = (py(i&) * cosr! - px(i&) * sinr!) * yScale + Y
px(i&) = x2&: py(i&) = y2&
_MAPTRIANGLE (0, 0)-(0, H&
- 1)-(W&
- 1, H&
- 1), Image&
TO(px
(0), py
(0))-(px
(1), py
(1))-(px
(2), py
(2)) _MAPTRIANGLE (0, 0)-(W&
- 1, 0)-(W&
- 1, H&
- 1), Image&
TO(px
(0), py
(0))-(px
(3), py
(3))-(px
(2), py
(2))