Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have made a customised 'run time' image using C# graphics.

I set everything to get the high quality image.

obj.SmoothingMode = SmoothingMode.HighQuality;
obj.CompositingQuality = CompositingQuality.HighQuality;
obj.PixelOffsetMode = PixelOffsetMode.HighQuality;
obj.InterpolationMode = InterpolationMode.HighQualityBicubic;
obj.PageUnit = GraphicsUnit.Display;

The output is loading fine in WPF, but same image does'nt have enough brightness if we are loading on ASP.NET page.

Red lines become dark red lines in page.

Any idea, what is the reason?
Sergey Alexandrovich Kryukov 21-Mar-12 0:03am    
Not enough information.
derinpdavis 21-Mar-12 0:06am    
what more information you need?
Sergey Alexandrovich Kryukov 21-Mar-12 2:52am    
To be frank, I don't need anything, but you probably do. :-) I just don't see any clue from your code. If you screw up anything, it's not in this fragment of code. The problem looks strange. I would do some tests. Save the picture from the Web page and compare with original. Something like that... I have nothing except your short fragment. I have no idea what else do you have...

1 solution

An asp page is shown in a browser, the browser is responsible for rendering the image (and different browsers may handle that differently...). In a WPF application, it is that WPF application to render the image (it will have the .NET framework doing that job).
That means, the differencesare likely caused by different rendering engines.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900