This project is read-only.

home.png GDIPlusX

GDIPlusX is a set of Visual FoxPro 9.0 class libraries that wrap the 603 GDI+ Flat API functions of GDIPlus.dll.


The library currently consist of 64 VFP wrapper classes and 47 enumeration classes with over 1,500 properties and methods.

The object model of these classes closely emulates the classes contained in the System.Drawing namespace of Visual Studio .NET. This not only makes the library easier to use, but also allows VFP developers to tap into thousands of GDI+ code samples, written in .NET, that can be easily translated to VFP code. The library currently includes over 90% of the functionality included in the following namespaces of .NET:
  • System.Drawing
  • System.Drawing.Drawing2D
  • System.Drawing.Imaging
  • System.Drawing.Text

vfpxreleasesmall.png Latest Release of GDIPlusX

GDIPlusX Goals
GDIPlusX Samples
GDIPlusX References
GDIPlusX Previous Releases

3270 Team Members
  • BinaryBo Project Manager
  • CraigSBoyd
  • VFPImaging
  • AlanStevens

If you would like to report any issues or need any assistance using the library, please use the Discussions area in CodePlex

If you would like to be involved in the project, please contact the project manager.

Last edited May 26, 2009 at 2:49 AM by binarybo, version 82


ImRicoh Aug 19, 2016 at 9:15 PM 
I need to pass this on to VFP, using the class GdiPlusX

VOID Example_LevelsSetParameters(HDC hdc)
Graphics graphics(hdc);
Image myImage(L"Photograph.jpg");

REAL srcWidth = (REAL)myImage.GetWidth();
REAL srcHeight = (REAL)myImage.GetHeight();
RectF srcRect(0.0f, 0.0f, srcWidth, srcHeight);
Matrix myMatrix(1.0f, 0.0f, 0.0f, 1.0f, 450.0f, 20.0f);

LevelsParams myLevelsParams;

myLevelsParams.highlight = 100; // no change
myLevelsParams.midtone = 0; // no change
myLevelsParams.shadow = 20; // Darken the dark areas.

Levels myLevels;

// Draw the image with no change.
graphics.DrawImage(&myImage, 20.0, 20.0, srcWidth, srcHeight);

// Draw the adjusted image.
graphics.DrawImage(&myImage, &srcRect, &myMatrix, &myLevels, NULL, UnitPixel);

dhfinamore Nov 5, 2012 at 10:44 PM 
I hope that anybody could help me on this,

this code works fine, but if the form is not visible
, for instance, when is running on a server,
like service give an black image file.

this is the code:

local locapturebmp as xfcbitmap

with _screen.system.drawing

locapturebmp = .bitmap.fromscreen(_screen.hwnd)"z.png", .imaging.imageformat.png)


what are I missing?