iOS Guides | Samples

MonoTouch.UIKit.UIImage.AsPNG Method

Encodes the image into a NSData byte blob using the PNG encoding.

Syntax

public 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: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0