Hi,
I've got a series of GIFs that I need to crop on the fly, I'm using a HTTP Handler in C# so I can better encapsulate the code - provide caching for the result etc.
Currently, when I draw the existing image to a new Image
via the Graphics
object all the transparency is lost.
I've tried various techniques to try and maintain the transparency, but to no avail.
Things I've tried:
- Using the
MakeTransparent (Color)
method call - Using the
ImageAttriutes
with a combination ofColorMap
andSetColorKey
I don't really want to start using unsafe operators or Win32 calls.
Any ideas?