MGL_rotateGlyph

Declaration

void MGLAPI MGL_rotateGlyph(
uchar *dst,
uchar *src,
int *byteWidth,
int *height,
int rotation)

Prototype In

mgraph.h

Parameters

dst | Destination glyph buffer
src | Source glyph buffer
byteWidth | Width of the glyph in bytes
height | Height of the glyph in scanlines
rotation | Rotation direction for the glyph

Description

This function computes the rotated image glyph of the source glyph, and stores the value in the destination buffer. The source buffer is not modified, and the rotated image glyph may possibly be larger than the source glyph. The resulting width and height of the destination glyph is returned. Supported directions are enumerated in MGL_textDirType

Note: You must preallocate enough space to hold the rotated glyph in the destination buffer, as this may actually be larger than the source glyph.

The final size will be the following:

(height + 7)/8 + byteWidth * 8

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com