UIKit.UIImage.AsPNG Method
Encodes the image into a Foundation.NSData byte blob using the PNG encoding.

Syntax

public Foundation.NSData AsPNG ()

Returns

The encoded image in an NSData wrapper or null if there was an error.

Remarks

This can be used from a background thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0