Graphisoft®

GX ModuleVersion: 16

GXGetRotatedGSPixMapWidthHeight

Gives the width and height of the bounding box large enough to accomodate the pixmap after rotation.

    void GXGetRotatedGSPixMapWidthHeight (
      Int32*         dWidth,
      Int32*         dHeight,
      double         angle,
      const GSRect*  sClip,
      const GSRect*  dClip,
      Int32*         f0h,
      Int32*         f0v
    );

Parameters

dWidth
In: the width of the original pixmap. Out: the width of the rotated pixmap.
dHeight
In: the height of the original pixmap. Out: the height of the rotated pixmap.
angle
The angle of the rotation.
sClip
A cliprect of the original pixmap.
dClip
The cliprect of the rotated pixmap.
f0h
The x coordinate of the bottom left vertex of the original pixmap on the rotated pixmap.
f0v
The y coordinate of the bottom left vertex of the original pixmap on the rotated pixmap.

Remarks

When you rotate a rectangle its bounding rectangle will be larger, this function helps to determine its new dimensions. The coordinates of the original pixmap in the rotated helps to align the new pixmap position such way its anchor point remain fixed.

Requirements

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

See Also

Graphics functions