The windowing transformation involves selecting a rectangular region
of interest in an un-displayed picture and transplanting the view obtained onto the display in a specific position. Consider that a rectangular area is selected measuring ΔX by ΔY, with the lower left-hand corner having the coordinates (X, Y) in the un-displayed picture coordinate system. The points within this rectangle, (x, y), are transformed into a rectangle measuring ΔX' by ΔY' by the transformation
x' = (ΔX'/ΔX)(x-X) + X'
y' = (ΔY'/ΔY)(y-Y) + Y'
Scaling is involved if ΔX' is not equal to ΔX and ΔY' is not equal to ΔY. Performing the windowing transformation before other transformations, where possible, may reduce the amount of computation on the subsequent transformations. Write pseudocode to perform the windowing transformation.