gdi/epng, gdi/gpixmap: A few minor optimizations, use argb()

Move "if" outside loop.
Use the cheap argb() function instead of re-doing it the hard way.