MGPlus maintains some graphics defines and operations
| MGPLUS_EXPORT HDC MGPlusGetGraphicDC | ( | HGRAPHICS | graphic | ) |
Get graphic’s buffer hdc.
This function get graphic’s buffer hdc.
| graphic | The MGPlusGraphics pointer. |
Blend between Graphic’s buffer.
This function Blends source MGPlusGraphics from dest MGPlusGraphics.
| src_gs | The source MGPlusGraphics pointer. | |
| dst_gs | The dest MGPlusGraphics pointer. |
Use color to clear graphics with the specific rect.
This function uses color to clear graphics with the specific rect, supported by mGPlus V1.2.1 or upper.
| graphics | The MGPlusGraphics pointer | |
| rect | The specific rect | |
| color | The clear color |
Copy the src graphic to dst.
This function copies the src graphic to dst.
| src_gs | The source MGPlusGraphics pointer. | |
| dst_gs | The dest MGPlusGraphics pointer. |
| MPStatus MGPlusGraphicCopyFromDC | ( | HGRAPHICS | graphic, | |
| HDC | hdc, | |||
| int | sx, | |||
| int | sy, | |||
| int | sw, | |||
| int | sh, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Copy the hdc content to graphic.
This function copys the hdc content to graphic.
| graphic | The MGPlusGraphics pointer. | |
| hdc | The copy hdc. | |
| sx | The x coordinate of the upper-left corner of the rectangle in the source DC. | |
| sy | The y coordinate of the upper-left corner of the rectangle in the source DC. | |
| sw | The width of the source rectangle. | |
| sh | The height of the source rectangle. | |
| dx | The x coordinate of the upper-left corner of the rectangle in the destination DC. | |
| dy | The y coordinate of the upper-left corner of the rectangle in the destination DC. |
| HGRAPHICS MGPlusGraphicCreate | ( | int | width, | |
| int | height | |||
| ) |
Create graphic.
This function creates MGPlusGraphics from specical size.
| width | The width of the graphics's surface | |
| height | The height of the graphics's surface |
| HGRAPHICS MGPlusGraphicCreateFromDC | ( | HDC | hdc | ) |
Create Graphic’s buffer through hdc.
This function creates MGPlusGraphics from specical hdc and returns the create status.
| hdc | The handle of hdc. |
| HGRAPHICS MGPlusGraphicCreateWithoutCanvas | ( | HDC | hdc | ) |
Create graphic from hdc and use hdc's surface as canvas.
This function creates MGPlusGraphics from specical hdc, but use hdc's surface as canvas of thr Graphics.
| hdc | The handle of hdc. |
Delete the graphic.
This function deletes MGPlusGraphics
| graphics | The MGPlusGraphics pointer. |
| MPStatus MGPlusGraphicSave | ( | HGRAPHICS | graphics, | |
| HDC | hdc, | |||
| int | sx, | |||
| int | sy, | |||
| int | sw, | |||
| int | sh, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Create Graphic’s buffer through hdc.
This function creates MGPlusGraphics from specical pix format and returns the create status.
| graphics | The MGPlusGraphics pointer. | |
| hdc | The dst hdc. | |
| sx | The x coordinate of the upper-left corner of the rectangle in the source DC. | |
| sy | The y coordinate of the upper-left corner of the rectangle in the source DC. | |
| sw | The width of the source rectangle. | |
| sh | The height of the source rectangle. | |
| dx | The x coordinate of the upper-left corner of the rectangle in the destination DC. | |
| dy | The y coordinate of the upper-left corner of the rectangle in the destination DC. |
Restore the graphic.
This function restores graphic from saved stack, supported by mGPlus V1.2.1 or upper.
| hg | The Graphic handle. | |
| saved_hg | The save_hg Specifies the saved state to be restored. If this parameter is positive, saved_hg represents a specific instance of the state to be restored. If this parameter is negative, saved_dc represents an instance relative to the current state. For example, -1 restores the most recently saved state. |
| MGPLUS_EXPORT int MGPlusSaveHG | ( | HGRAPHICS | hg | ) |
Save the graphic to stack.
This function saves the graphic to stack, supported by mGPlus V1.2.1 or upper.
| hg | The Graphic handle. |
1.6.3