I am trying to build a page that will allow me to take an input image and generate a mask from it. The input would be an indexed PNG with a transparent background. The resultant image would be be black where the original was transparent and transparent wherever the original image was opaque.
I’ve done some very basic image manipulation in asp.net but i’m unsure of how to proceed. I’m hoping that there is some solution faster than going pixel by pixel.
If anyone can point me in the right direction i would really appreciate it.
You should probably look into transformations.
http://en.csharp-online.net/GDIplus_Graphics_Transformation%E2%80%94Image_Transformation