New graphic control demo (GraphCtx) from Jose Roca

Started by Jean-pierre Leroy, August 26, 2012, 12:23:02 PM

Previous topic - Next topic

Jean-pierre Leroy

Dear FireFly users,

I'm happy to share with you a sample FireFly project that illustrates some aspects of the new graphic control (GraphCtx) made by Jose Roca and available since FireFly 3.61.

This project GraphCtxDemo illustrates how to ...

1. use some GDI+ examples made by Jose Roca with FireFly:


2. use some basic GraphCtx functions:


  • GraphCtx_Clear()
  • GraphCtx_PrintBitmap()
  • GraphCtx_SetVirtualBufferSize()

Notes:

  • I just copy paste 3 GDI+ examples from Jose Roca Website to illustrate how it works with FF 3.61; Jose Roca has several hundred examples available on his Website.
  • Theses 3 examples use raw API; I know we can probably use also GDI+ classes with FF, but I don't know how.

Your feedback is welcome
Jean-Pierre

Jean-pierre Leroy

Paul, Jose,

Just a small point:

In this demo I need to send to the control a FF_Control_Redraw ...

FF_Control_Redraw HWND_FORM1_GRAPHICCONTROL1

... after each call to Jose examples (GDIP_DrawLine(), GDIP_DrawLines(), GDIP_DrawSpheres(), etc ...) in order to display the graphic.

Is-it the normal behavior for this control ?

Thanks
Jean-Pierre