Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WPF graphics
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 asp.net page.
 
Any idea, what is the reason?
Posted 20-Mar-12 18:53pm
Comments
SAKryukov at 21-Mar-12 0:03am
   
Not enough information.
--SA
derinpdavis at 21-Mar-12 0:06am
   
what more information you need?
SAKryukov at 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...
--SA

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 21 Mar 2012
Copyright © CodeProject, 1999-2014
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