mGPlus API Reference  v1.4.0
A MiniGUI component which provides support for advanced 2D graphics functions
Functions
Render

Functions

MGPLUS_EXPORT MPStatus MGPlusDrawLine (HGRAPHICS graphics, HPEN pen, float x1, float y1, float x2, float y2)
 Draw a line on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawLineI (HGRAPHICS graphics, HPEN pen, int x1, int y1, int x2, int y2)
 Draw a line on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawArc (HGRAPHICS graphics, HPEN pen, float x, float y, float width, float height, float startangle, float sweepangle)
 Draw a arc on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawArcI (HGRAPHICS graphics, HPEN pen, int x, int y, int width, int height, float startAngle, float sweepAngle)
 Draw a arc on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillArc (HGRAPHICS graphics, HBRUSH brush, float x, float y, float width, float height, float startangle, float sweepangle)
 Fill a arc on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillArcI (HGRAPHICS graphics, HBRUSH brush, int x, int y, int width, int height, float startAngle, float sweepAngle)
 Fill a arc on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawBezier (HGRAPHICS graphics, HPEN pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 Draw a bezier on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawBezierI (HGRAPHICS graphics, HPEN pen, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
 Draw a bezier on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillBezier (HGRAPHICS graphics, HBRUSH brush, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 Fill a bezier on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillBezierI (HGRAPHICS graphics, HBRUSH brush, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
 Fill a bezier on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillRectangle (HGRAPHICS graphics, HBRUSH brush, float x, float y, float width, float height)
 Draw a rectangle on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillRectangleI (HGRAPHICS graphics, HBRUSH brush, int x, int y, int width, int height)
 Draw a rectangle on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawRectangle (HGRAPHICS graphics, HPEN pen, float x, float y, float width, float height)
 Draw a rectangle on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawRectangleI (HGRAPHICS graphics, HPEN pen, int x, int y, int width, int height)
 Draw a rectangle on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawRoundRectEx (HGRAPHICS graphics, HPEN pen, float x, float y, float width, float height, float rx, float ry)
 Draw a roundrect on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawRoundRectIEx (HGRAPHICS graphics, HPEN pen, int x, int y, int width, int height, int rx, int ry)
 Draw a roundrect on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillRoundRectEx (HGRAPHICS graphics, HBRUSH brush, float x, float y, float width, float height, float rx, float ry)
 Draw a round rect on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillRoundRectIEx (HGRAPHICS graphics, HBRUSH brush, int x, int y, int width, int height, int rx, int ry)
 Draw a round rect on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawEllipse (HGRAPHICS graphics, HPEN pen, float cx, float cy, float rx, float ry)
 Draw a ellipse on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawEllipseI (HGRAPHICS graphics, HPEN pen, int cx, int cy, int rx, int ry)
 Draw a ellipse on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillEllipse (HGRAPHICS graphics, HBRUSH brush, float cx, float cy, float rx, float ry)
 Fill a ellipse on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillEllipseI (HGRAPHICS graphics, HBRUSH brush, int cx, int cy, int rx, int ry)
 Draw a ellipse on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusSetClipPath (HGRAPHICS graphics, HPATH path)
 Set the path as a clip on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusFillPath (HGRAPHICS graphics, HBRUSH brush, HPATH path)
 Fill the path with a brush on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawPath (HGRAPHICS graphics, HPEN pen, HPATH path)
 Draw the path with a pen on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusGraphicLoadBitmap (HGRAPHICS graphics, int n_index, PBITMAP p_bitmap)
 Load the p_bitmap to graphic's inner resource. More...
 
MGPLUS_EXPORT MPStatus MGPlusGraphicLoadBitmapFromFile (HGRAPHICS graphics, int n_index, char *file)
 Load the file to graphic's inner resource. More...
 
MGPLUS_EXPORT MPStatus MGPlusGraphicUnLoadBitmap (HGRAPHICS graphics, int n_index)
 UnLoad the p_bitmap to graphic's inner resource. More...
 
MGPLUS_EXPORT MPStatus MGPlusSetImageAlpha (HGRAPHICS graphics, int alpha)
 Set image alpha of graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusGetImageAlpha (HGRAPHICS graphics, int *alpha)
 Get image alpha of graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawImageWithPoints (HGRAPHICS graphics, int n_index, const MPPOINT *point, int count)
 Draw the image with a series of points on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawImage (HGRAPHICS graphics, int n_index, int x, int y, int w, int h)
 Draw the image with on the graphic. More...
 
MGPLUS_EXPORT MPStatus MGPlusDrawImageWithPath (HGRAPHICS graphics, int n_index, HPATH path)
 Draw the image with a path on the graphic. More...
 

Detailed Description

MGPlus maintains some render defines and operations

Function Documentation

MPStatus MGPlusDrawArc ( HGRAPHICS  graphics,
HPEN  pen,
float  x,
float  y,
float  width,
float  height,
float  startangle,
float  sweepangle 
)

Draw a arc on the graphic.

This function draws a arc on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
yThe y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
widthThe width of the bounding rectangle for the ellipse.
heightThe height of the bounding rectangle for the ellipse.
startangleThe start angle.
sweepanglespecifies the angle, between the starting point (startangle) and the ending point of the arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawArcI
MPStatus MGPlusDrawArcI ( HGRAPHICS  graphics,
HPEN  pen,
int  x,
int  y,
int  width,
int  height,
float  startangle,
float  sweepangle 
)

Draw a arc on the graphic.

This function draws a arc on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
yThe y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
widthThe width of the bounding rectangle for the ellipse.
heightThe height of the bounding rectangle for the ellipse.
startangleThe start angle.
sweepangleSpecifies the angle, between the starting point (startangle) and the ending point of the arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawArc
MPStatus MGPlusDrawBezier ( HGRAPHICS  graphics,
HPEN  pen,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4 
)

Draw a bezier on the graphic.

This function draws a bezier on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
x1The start x of bezier.
y1The start y of bezier.
x2The first control x of bezier.
y2The first control y of bezier.
x3The second control x of bezier.
y3The second control y of bezier.
x4The end x of bezier.
y4The end y of bezier.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawBezierI
MPStatus MGPlusDrawBezierI ( HGRAPHICS  graphics,
HPEN  pen,
int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3,
int  x4,
int  y4 
)

Draw a bezier on the graphic.

This function draws a bezier on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
x1The start x of bezier.
y1The start y of bezier.
x2The first control x of bezier.
y2The first control y of bezier.
x3The second control x of bezier.
y3The second control y of bezier.
x4The end x of bezier.
y4The end y of bezier.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawBezier
MPStatus MGPlusDrawEllipse ( HGRAPHICS  graphics,
HPEN  pen,
float  cx,
float  cy,
float  rx,
float  ry 
)

Draw a ellipse on the graphic.

This function draws a ellipse on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
cxThe X position of the center of the ellipse.
cyThe Y position of the center of the ellipse.
rxThe x-radius of the ellipse.
ryThe y-radius of the ellipse.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawEllipseI
MPStatus MGPlusDrawEllipseI ( HGRAPHICS  graphics,
HPEN  pen,
int  cx,
int  cy,
int  rx,
int  ry 
)

Draw a ellipse on the graphic.

This function draws a ellipse on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
cxThe X position of the center of the ellipse.
cyThe Y position of the center of the ellipse.
rxThe x-radius of the ellipse.
ryThe y-radius of the ellipse.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawEllipse
MPStatus MGPlusDrawImage ( HGRAPHICS  graphics,
int  n_index,
int  x,
int  y,
int  w,
int  h 
)

Draw the image with on the graphic.

This function draws the image with a series of points on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe graphic's inner resource index.
xThe x coordinate of the upper-left corner of the box.
yThe y coordinate of the upper-left corner of the box.
wThe width of the box. Can be zero, means the width or the height will be equal to the width or the height of The BITMAP object.
hThe height of the box. Can be zero, means the width or the height will be equal to the width or the height of the BITMAP object.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawImageWithPath
MPStatus MGPlusDrawImageWithPath ( HGRAPHICS  graphics,
int  n_index,
HPATH  path 
)

Draw the image with a path on the graphic.

This function draws the image with a path on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe graphic's inner resource index.
pathThe path need to be filled.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawImageWithPoints
MPStatus MGPlusDrawImageWithPoints ( HGRAPHICS  graphics,
int  n_index,
const MPPOINT point,
int  count 
)

Draw the image with a series of points on the graphic.

This function draws the image with a series of points on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe image index.
pointThe points pointer.
countThe points count.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawImageWithPath
MPStatus MGPlusDrawLine ( HGRAPHICS  graphics,
HPEN  pen,
float  x1,
float  y1,
float  x2,
float  y2 
)

Draw a line on the graphic.

This function draws a line on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
x1The start x of line.
y1The start y of line.
x2The end x of line.
y2The end y of line.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawLineI
MPStatus MGPlusDrawLineI ( HGRAPHICS  graphics,
HPEN  pen,
int  x1,
int  y1,
int  x2,
int  y2 
)

Draw a line on the graphic.

This function draws a line on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
x1The start x of line
y1The start y of line.
x2The end x of line.
y2The end y of line.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawLine
MPStatus MGPlusDrawPath ( HGRAPHICS  graphics,
HPEN  pen,
HPATH  path 
)

Draw the path with a pen on the graphic.

This function draws the path with a pen on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
pathThe path need to be drew.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillPath
MPStatus MGPlusDrawRectangle ( HGRAPHICS  graphics,
HPEN  pen,
float  x,
float  y,
float  width,
float  height 
)

Draw a rectangle on the graphic.

This function draws a rectangle on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawRectangleI
MPStatus MGPlusDrawRectangleI ( HGRAPHICS  graphics,
HPEN  pen,
int  x,
int  y,
int  width,
int  height 
)

Draw a rectangle on the graphic.

This function draws a rectangle on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawRectangle
MPStatus MGPlusDrawRoundRectEx ( HGRAPHICS  graphics,
HPEN  pen,
float  x,
float  y,
float  width,
float  height,
float  rx,
float  ry 
)

Draw a roundrect on the graphic.

This function draws a roundrect on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
rxThe x-radius of round rect arc.
ryThe y-radius of round rect arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawRoundRectI
MPStatus MGPlusDrawRoundRectIEx ( HGRAPHICS  graphics,
HPEN  pen,
int  x,
int  y,
int  width,
int  height,
int  rx,
int  ry 
)

Draw a roundrect on the graphic.

This function draws a roundrect on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
penThe draw pen.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
rxThe x-radius of round rect arc.
ryThe y-radius of round rect arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawRectangle
MPStatus MGPlusFillArc ( HGRAPHICS  graphics,
HBRUSH  brush,
float  x,
float  y,
float  width,
float  height,
float  startangle,
float  sweepangle 
)

Fill a arc on the graphic.

This function fills a arc on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
yThe y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
widthThe width of the bounding rectangle for the ellipse.
heightThe height of the bounding rectangle for the ellipse.
startangleThe start angle.
sweepangleSpecifies the angle, between the starting point (startangle) and the ending point of the arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillArcI
MPStatus MGPlusFillArcI ( HGRAPHICS  graphics,
HBRUSH  brush,
int  x,
int  y,
int  width,
int  height,
float  startangle,
float  sweepangle 
)

Fill a arc on the graphic.

This function fills a arc on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
yThe y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
widthThe width of the bounding rectangle for the ellipse.
heightThe height of the bounding rectangle for the ellipse.
startangleThe start angle.
sweepangleSpecifies the angle, between the starting point (startangle) and the ending point of the arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillArc
MPStatus MGPlusFillBezier ( HGRAPHICS  graphics,
HBRUSH  brush,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4 
)

Fill a bezier on the graphic.

This function fills a bezier on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
x1The start x of bezier.
y1The start y of bezier.
x2The first control x of bezier.
y2The first control y of bezier.
x3The second control x of bezier.
y3The second control y of bezier.
x4The end x of bezier.
y4The end y of bezier.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillBezierI
MPStatus MGPlusFillBezierI ( HGRAPHICS  graphics,
HBRUSH  brush,
int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3,
int  x4,
int  y4 
)

Fill a bezier on the graphic.

This function fills a bezier on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
x1The start x of bezier.
y1The start y of bezier.
x2The first control x of bezier.
y2The first control y of bezier.
x3The second control x of bezier.
y3The second control y of bezier.
x4The end x of bezier.
y4The end y of bezier.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillBezier
MPStatus MGPlusFillEllipse ( HGRAPHICS  graphics,
HBRUSH  brush,
float  cx,
float  cy,
float  rx,
float  ry 
)

Fill a ellipse on the graphic.

This function fills a ellipse on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
cxThe X position of the center of the ellipse.
cyThe Y position of the center of the ellipse.
rxThe x-radius of the ellipse.
ryThe y-radius of the ellipse.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillEllipseI
MPStatus MGPlusFillEllipseI ( HGRAPHICS  graphics,
HBRUSH  brush,
int  cx,
int  cy,
int  rx,
int  ry 
)

Draw a ellipse on the graphic.

This function draws a ellipse on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
cxThe X position of the center of the ellipse.
cyThe Y position of the center of the ellipse.
rxThe x-radius of the ellipse.
ryThe y-radius of the ellipse.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillEllipse
MPStatus MGPlusFillPath ( HGRAPHICS  graphics,
HBRUSH  brush,
HPATH  path 
)

Fill the path with a brush on the graphic.

This function fills the path with a brush on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
pathThe path need to be filled.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusDrawPath
MGPLUS_EXPORT MPStatus MGPlusFillRectangle ( HGRAPHICS  graphics,
HBRUSH  brush,
float  x,
float  y,
float  width,
float  height 
)

Draw a rectangle on the graphic.

This function draws a rectangle on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillRectangleI
MGPLUS_EXPORT MPStatus MGPlusFillRectangleI ( HGRAPHICS  graphics,
HBRUSH  brush,
int  x,
int  y,
int  width,
int  height 
)

Draw a rectangle on the graphic.

This function draws a rectangle on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillRectangle
MPStatus MGPlusFillRoundRectEx ( HGRAPHICS  graphics,
HBRUSH  brush,
float  x,
float  y,
float  width,
float  height,
float  rx,
float  ry 
)

Draw a round rect on the graphic.

This function draws a round rect on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
rxThe x-radius of round rect arc.
ryThe y-radius of round rect arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillRoundRectI
MPStatus MGPlusFillRoundRectIEx ( HGRAPHICS  graphics,
HBRUSH  brush,
int  x,
int  y,
int  width,
int  height,
int  rx,
int  ry 
)

Draw a round rect on the graphic.

This function draws a round rect on the graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
brushThe fill brush.
xThe left x of the rectangle.
yThe top y of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.
rxThe x-radius of round rect arc.
ryThe y-radius of round rect arc.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillRoundRect
MPStatus MGPlusGetImageAlpha ( HGRAPHICS  graphics,
int *  alpha 
)

Get image alpha of graphic.

This function get the image alpha of graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
alphaThe image alpha.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusSetImageAlpha
MPStatus MGPlusGraphicLoadBitmap ( HGRAPHICS  graphics,
int  n_index,
PBITMAP  p_bitmap 
)

Load the p_bitmap to graphic's inner resource.

This function loads the p_bitmap to graphic's inner resource.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe resource number.
p_bitmapThe bitmap need to be drew.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusGraphicLoadBitmapFromFile
MPStatus MGPlusGraphicLoadBitmapFromFile ( HGRAPHICS  graphics,
int  n_index,
char *  file 
)

Load the file to graphic's inner resource.

This function loads the file to graphic's inner resource.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe resource number.
fileThe bitmap path.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusGraphicLoadBitmap
MPStatus MGPlusGraphicUnLoadBitmap ( HGRAPHICS  graphics,
int  n_index 
)

UnLoad the p_bitmap to graphic's inner resource.

get the p_bitmap to graphic's inner resource.

This function unloads the p_bitmap to graphic's inner resource.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe resource number.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusGraphicLoadBitmap

This function get the p_bitmap to graphic's inner resource.

Parameters
graphicsThe MGPlusGraphics pointer.
n_indexThe resource number.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusGraphicLoadBitmap
MPStatus MGPlusSetClipPath ( HGRAPHICS  graphics,
HPATH  path 
)

Set the path as a clip on the graphic.

This function set the path as a clip on the graphic, supported by mGPlus V1.2.1 or upper.

Parameters
graphicsThe MGPlusGraphics pointer.
pathThe clip path.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusFillPath
MPStatus MGPlusSetImageAlpha ( HGRAPHICS  graphics,
int  alpha 
)

Set image alpha of graphic.

This function set the image alpha of graphic.

Parameters
graphicsThe MGPlusGraphics pointer.
alphaThe image alpha.
Returns
Get Status, MP_GENERIC_ERROR indicates an error.
See also
MGPlusGetImageAlpha