troubleshooting Question

When loading a PNG image using GDI+ the drop shadow inside the image is being dithered.

Avatar of chris45
chris45Flag for Australia asked on
C++Windows XPMicrosoft Development
17 Comments1 Solution2202 ViewsLast Modified:
Hi Everyone,

When I do the following:
Image *pngFromFile = Image::FromFile( L"C:\\Visine4.png" );

Any attempt to draw that into a Graphics context results in the dithering effect seen in the attached "dither.jpg". Does anyone know how I can load or draw this image in a particular way so that the drop shadow is displayed "nicely".

I have an feeling that the dithering is occurring on load, in which case I might have to load the image in a different manner.
dither.jpg
Visine4.png
ASKER CERTIFIED SOLUTION
JohnGaby

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros