I am looking for a way to quickly determine if a PNG image has transparent features. That is, whether any portion of the image is translucent or displays the background in a
Why not just loop through all of the pixels in the image and check their alpha values?
bool ContainsTransparent(Bitmap image) { for (int y = 0; y < image.Height; ++y) { for (int x = 0; x < image.Width; ++x) { if (image.GetPixel(x, y).A != 255) { return true; } } } return false; }