C#C
C#17mo ago
Ploot

Grainy gif output when using `Graphics` on source Bitmap

I've cobbled together some horrible test code for taking an a gif, writing some text to each frame and saving again, however I'm encountering a rather annoying issue. Read here

If all frames are left as they are then the output gif is comparable to the input gif, however once I start using Graphics on the frames then the quality drops noticeably and in a way that makes me think it's using indexed colour however I can't find any explanation as to why this is or how I could go about fixing this.

Anyone worked with GDI+/Graphics know what the hecc is happening here?
plutia.gif
test.gif
Gist
GitHub Gist: instantly share code, notes, and snippets.
Was this page helpful?