Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in GDI+ Imgage Capture
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01524847
Message ID:
01525038
Views:
61
If it's a bug in GDI+, you should report it to Microsoft.


>There is a bug in the loCaptureBmp function (below) in GDI+. Every time I run it the entire form jumps down one line and I have to set form.top = 0 to reset it. I tried LockScreen = .t. but it had no effect at all. Everything else works great but the screen jump is annoying to my customers.
>
>
WITH _Screen.System.Drawing
>  loCaptureBmp = .Bitmap.FromScreen(;
>    Thisform.HWnd, ;
>    mLeftOffset, ;
>    mTopOffset, ;
>    mWidth, ;
>    mHeight )
>    *
>    * Write file directly to image object
>    Thisform.imgDummy.PictureVal= loCaptureBmp.GetPictureValFromHbitmap()
>ENDWITH
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform