Pen

Functions


Detailed Description

MGPlus maintains some pen defines and operations


Function Documentation

HPEN MGPlusPenCreate ( int  width,
ARGB  rgba 
)

Create a pen.

This function creates a pen.

Parameters:
width The width of the pen.
rgba The rgba of the pen.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
MPStatus MGPlusPenDelete ( HPEN  pen  ) 

Delete a pen.

This function deletes a pen.

Parameters:
pen The pen pointer.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenCreate
MPStatus MGPlusPenSetCapStyle ( HPEN  pen,
LINE_CAP_E  line_join 
)

Set the pen line cap style.

This function sets the pen line cap style.

Parameters:
pen The pen.
line_join The line cap style of the pen.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
MPStatus MGPlusPenSetColor ( HPEN  pen,
ARGB  rgba 
)

Set the pen color.

This function sets the pen color.

Parameters:
pen The pen.
rgba The rgba of the pen.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
MPStatus MGPlusPenSetDashes ( HPEN  pen,
int  dash_phase,
const unsigned char *  dash_list,
int  dash_len 
)

Set the pen dashes.

This function sets the pen dash line style.

Parameters:
pen The pen.
dash_phase The dash phase of pen.
dash_list The dash vector value.
dash_len The length of vector.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
MPStatus MGPlusPenSetJoinStyle ( HPEN  pen,
LINE_JOIN_E  line_cap 
)

Set the pen line join style.

This function sets the pen join style.

Parameters:
pen The pen.
line_cap The line join style of the pen.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
MPStatus MGPlusPenSetWidth ( HPEN  pen,
int  width 
)

Set the pen width.

This function sets the pen width.

Parameters:
pen The pen.
width The width of the pen.
Returns:
Get Status, MP_GENERIC_ERROR indicates an error.
See also:
MGPlusPenDelete
Generated on Wed Apr 27 09:48:11 2011 for mGPlus V1.2.4 API Reference by  doxygen 1.6.3