Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by aewarnick
C#
  • 8 years later...
Posted

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?

  • 3 weeks later...
  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...