Graphisoft®

GX ModuleVersion: 16

GXRotateGSPixMap

Copies the rotatated look of the source pixmap into the destination pixmap.

    GSErr GXRotateGSPixMap (
      GSPixMapHandle  srcPixMap,
      GSPixMapHandle  dstPixMap,
      double          angle,
      bool            mirr,
      const GSRect*   sClip,
      Int32           f0h,
      Int32           f0v
    );

Parameters

srcPixMap
The source pixmap.
dstPixMap
The destination pixmap.
angle
The angle of the rotation.
mirr
Should mirror the pixmap to the y-axis before rotation.
sClip
Cliprect on the source pixmap (only this part's look will be rotated and copied).
f0h
The x position of the bottom-left corner of the source pixmap on the destination pixmap.
f0v
The y position of the bottom-left corner of the source pixmap on the destination pixmap.

Return Values

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Remarks

The destination pixmap should be large enough to accomodate the rotated view of the source pixmap. You should use the GXGetRotatedGSPixMapWidthHeight to determine it and the new position of the bottom left corner of the source pixmap.

Requirements

Version:
GX 10 or later
Header:
Graphics2D.h
Import Library:
GXImp.lib
Module:
GX.dll [WIN], GX.framework [MAC]

See Also

Graphics functions