Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

New Comment on "GDIPlusX"

$
0
0
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; 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);

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>