GINO Graphics Suite - GINO v9.0  

gSetPixelTransform

Syntax

[C/C++:]
void gSetPixelTransform(int ori, float xsca, float ysca);
[F90:]
subroutine gSetPixelTransform(ori, xsca, ysca)

integer, intent(in) :: ori
real, intent(in) :: xsca,ysca

Arguments

ori
An integer specifying the orientation of the pixel array

= 0, None
= 1, 90 degrees anti-clockwise
= 2, 180 degrees anti-clockwise
= 3, 270 degrees anti-clockwise

xsca,ysca
X and Y scaling factors

Description

The routine gSetPixelTransform() specifies the orientation and scaling transformation of subsequent pixel rectangles.

All subsequently drawn pixel rectangles will be subject to these transformations. The orientation and scaling transformations occur independently from the pixel coordinate space with the transformed pixel rectangle being drawn from the anchor point specified through gDrawPixelArea().

The orientation variable, ori, will affect a rectangular pixel array for 90 and 270 degree rotation by swapping the X and Y dimensions.

The X and Y scaling factors, xsca,ysca, scale along the X and Y pixel coordinate axes, independently from the orientation characteristics.

See Also

gSetPixelTransform Usage
gDrawPixelArea