BAD IMAGE QUALITY (Bitmap)
Making a functionnality to add image to a page, but when i save it the quality is just horrible. It feel like on screen the image difference are the same, but there is very a big quality difference. Is there a way to make it look way better? Code :
7 Replies
some more context would help. what is pageImage?
pageImage is the PictureBox
maybe need to tweak the interpolation mode, or scale it properly when switching from 96 dpi screen to 300 dpi pdf
maybe try this :
it helped me to make the image quality better back then
For reference I stopped having to deal with
Bitmap
in favour of storing everything as bytes:
So something like: ImageBytes = Utils.GetGraphic(path);
and rendering via <Image Source="{Binding ImageBytes}"/>
ok now I see you're querying about saving it, not loading it. You can do the same:
Then System.IO.File.WriteAllBytes
.@Salman @Sehra still the same quality...