Quiero pasar este codigo a VFP, pero me doy cuenta que el gdiplus no tiene la opcion LevelsParams, me refiero al gdiplus que biene con el
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;
myLevels.SetParameters(&myLevelsParams);
// 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);