Examples using... "image/png"

Recent
Encode writes the Image m to w in PNG format. Any Image may be encoded, but images that are not image.NRGBA might be encoded lossily.
Decode reads a PNG image from r and returns it as an image.Image. The type of Image returned depends on the PNG contents.