Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SAVE SCREEN
Message
From
05/04/2009 11:54:42
 
 
To
22/03/2009 18:21:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01390406
Message ID:
01393330
Views:
62
>>Hi All:
>>
>>Clipper has the following function:
>>
>>
>>screenvar = savescreen(n1, n2, n3, n4)
>>
>>
>>where n1...n4 are screen coordinates.
>>
>>You can then say @n1,0 clear
>>-
>>-
>>-
>>code here
>>-
>>-
>>-
>>and then issue a:
>>
>>
>>=restscreen(n1, n2, n3, n4, screenvar)
>>
>>
>>This leaves whtever is above the coordinates undisturbed.
>>
>>How can this be accomplished in VFP?
>>
>>Thanks,
>>
>>Yossi
>
>
>Hi Yossi,
>
>GdiPlusX brings a function that allows you to capture a WIndow, specific portion of a window, or a specific object from that window.
>
>
>
DO LOCFILE("System.App") 
>
>LOCAL loCaptureBmp AS xfcBitmap
>WITH _Screen.System.Drawing
>   loCaptureBmp = .Bitmap.FromScreen(Thisform.Container1)
>   loCaptureBmp.Save("c:\Captured.png", .Imaging.ImageFormat.Png)
>ENDWITH
>
>
>For more options, check here:
>http://weblogs.foxite.com/vfpimaging/archive/2007/01/17/3145.aspx
>
>HTH
>
>Cesar

Hi Cesar:

thanks. I will look at it.

Yossi
Previous
Reply
Map
View

Click here to load this message in the networking platform