This project is read-only.

CreateFromHWND in GdiPlusx

Topics: General, Attention VFPX Admins
Apr 21, 2008 at 7:30 AM
As far I was using _gdiplus.vcx in my projects.
I want to move forward and take the advantages of gdiplusx but i don't know how to set the handle from imagecanvas to _screen or a form.

i.e.
oGraphicsObject = Newobject('GpGraphics',Home(1)+'ffc/_gdiplus.vcx')
oGraphicsObject .CreateFromHWND(_Screen.HWnd)

Which is the respective definition for the above code?
Apr 21, 2008 at 3:50 PM
Edited Apr 21, 2008 at 3:51 PM

Which is the respective definition for the above code?


DO System.app
oGraphicsObject = _SCREEN.System.Drawing.Graphics.FromHWND(_SCREEN.HWnd)

If you are using the imgCanvas class, you can just reference This.oGFX.