aewarnick Posted June 18, 2003 Posted June 18, 2003 When I draw an image the color is not the same as the original. Is there any way to fix that? e.Graphics.DrawImage(Im, rect); Quote C#
aewarnick Posted June 19, 2003 Author Posted June 19, 2003 (edited) I found that if I use DrawImageUnscaled I get perfect quality. Now, the question is, How can I use DrawImage and get the same image quality? Even when I include: e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; in my paint event, the quality is better but not near as good as Unscaled. Edited June 19, 2003 by aewarnick Quote C#
Spiggers Posted January 24, 2012 Posted January 24, 2012 Hi, I am finding this problem also. I need to resize but I cannot work out how to stop colours going darker. I suspect something related to colormatrices and the imageattributes collection. Did you get an answer? Quote
EFileTahi-A Posted February 14, 2012 Posted February 14, 2012 I use DrawImage without the darkness issue you both describe. Can I have a look your code? Quote
SleepingTroll Posted February 14, 2012 Posted February 14, 2012 Just a guess, since I am new at DirectX (see my post)... But I suspect your Gamma is off? Quote
Leaders snarfblam Posted February 14, 2012 Leaders Posted February 14, 2012 SleepingTroll, this is GDI+, not DirectX. It's impossible to diagnose a problem like this with a one-line description. If you post the image you are trying to draw and/or the code that is doing the drawing, it'll help. I'm not aware of any situation that would cause the colors to change unless you are specifically passing a ColorMatrix to do so, but certain types of graphics may appear darker or degraded with slight scaling. Quote [sIGPIC]e[/sIGPIC]
JibstaMan Posted February 15, 2012 Posted February 15, 2012 I think I had the same problem. I used an ImageList, but somehow the images in the list were darker then they should have been. I've removed the images and added them again, which solved the problem for me. Not sure how I added the images in the first place... been a while. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.