API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IGRAPHICS_SETPAINTMODE()

Brew Release
Brew MP 1.0.2
See Also
AEEPaintMode IGraphics IGRAPHICS_GetPaintMode()
Description
This function sets the paint mode. In AEE_PAINT_COPY mode, the new graphics content overwrites the previous one. In AEE_PAINT_XOR mode, the color will be determined by the XOR binary operation of the old and new colors.
Given an arbitrary background and an arbitrary new foreground color, XOR the same foreground color against the background to recover the background.
Params
pIGraphics
[]:
Pointer to the IGraphics interface object.
mode
[]:
The enum value for paint mode, either AEE_PAINT_COPY or AEE_PAINT_XOR.
Interface
  • IGRAPHICS
Prototype
  • AEEPaintMode IGRAPHICS_SetPaintMode(IGraphics *pIGraphics, AEEPaintMode mode);
    
Return
  • The update enum value for paint mode.
Side Effect
  • None
Comments
If an invalid integer (enum) value is passed as the input "mode" parameter, the paint mode is set to AEE_PAINT_COPY by default.