Click here to Skip to main content
13,054,329 members (121,390 online)
Rate this:
Please Sign up or sign in to vote.
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?
Posted 20-Mar-12 17:53pm
SAKryukov 21-Mar-12 0:03am
Not enough information.
derinpdavis 21-Mar-12 0:06am
what more information you need?
SAKryukov 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 21 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100