Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drawing arcs, and creating printable images
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00452557
Message ID:
00453262
Views:
23
Hi!

>>Anotehr approach - use API functions (you will require window handle, device context etc etc.)


>API functions? how does that work, and can you save the bitmap for later use as for reports, and/or transition to word?

Well, If I will start to write complete algorithms here... ;) Sorry, just kidding.
Following are samples:
* following returns window handle of _VFP object. _Screen object have another HWND, so GetDC will not work here, however it should work for HWND of regular form.

declare integer GetActiveWindow in Win32API
declare integer GetWindowDC in Win32API integer && GetDC when draw in client area only
declare integer ReleaseDC in Win32API integer
declare integer Ellipse in Win32API integer,integer,integer,integer,integer
rr = GetActiveWindow()
tt = GetWindowDC(rr) && GetDC when draw in client area only
=Ellipse(tt,0,0,200,200)
ReleaseDC(tt)
Another sample (works for form only):
DECLARE INTEGER BeginPaint IN wIN32api INTEGER, STRING @rr
DECLARE INTEGER EndPaint IN wIN32api INTEGER, STRING @rr
ss = replicate(chr(0),64)
ss = replicate(chr(0),64)
tt = BeginPaint(nHWND,ss)
=Ellipse(tt,0,0,200,200)
EndPaint(nHWND,ss)
In help for Win32API you will find a lot of functions related to painting.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform