Editar

Compartilhar via


UIImage.AsPNG Method

Definition

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

public Foundation.NSData AsPNG ();
member this.AsPNG : unit -> Foundation.NSData

Returns

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

Remarks

This can be used from a background thread.

Applies to