Foxite.COM Community Weblog

Foxite.COM Community Weblog - free weblog service for the Visual FoxPro Community.
Welcome to Foxite.COM Community Weblog Sign in | Join | Help
in
Home Blogs Forum Photos Forum Archives

VFP IMAGING



Send Images to the Clipboard with GdiPlus-X REVISITED

Few days ago I posted a solution based on Alexander Golovlev's GPIMAGE GDI+ class showing how to send an image to the clipboard.

We agreed that although this function is not present originally on the "System.Drawing" namespace from .NET, it could represent a good addiction to the Gdiplus-X livrary for VFP. So, the function "ToClipboard()" was added to the Bitmap class.

From now on, I mean from Gdiplus-X Release 0.07 and forward, we can send any GDI+ compatible image to the clipboard using the new "ToClipboard()" function just added to the Bitmap class using the simple code below:


** The following code example demonstrates how to send an
** image to the clipboard
** Sample totally based on the method "ToClipboard" from GPIMAGE GDI+ class
** from Alexander Golovlev

DO LOCFILE("System.App")

LOCAL loBmp AS xfcBitmap 
loBmp = _SCREEN.System.Drawing.
Bitmap.New(GETPICT()) 
loBmp.ToClipboard()

Published Monday, January 29, 2007 6:30 PM by cesarchalom
Filed Under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Malcolm Greene said:

Cesear,

QUOTE: "it could represent a good addiction to the Gdiplus-X"

Is your use of "addiction" intentional or a subconcious bias? :)

Love your posts!

Malcolm

Hey Mal,

LOL ! None of the options... Just my bad English !

I meant Addition, inclusion, not addiction ! I'm sorry. Thanks for the comments.

Cesar

March 3, 2007 5:02 PM
 

Ana María Bisbé said:

Versión en Español de este artículo en / Spanish version at http://www.portalfox.com/article.php?sid=2357
July 24, 2007 7:25 PM
 

VFP IMAGING said:


 
The GdiPlusX library is intended to be compatible with the .NET Framework’s System.Drawing...
May 26, 2008 6:59 PM

What do you think?

(required) 
(optional)
(required)