Android.Hardware.Camera2.DngCreator.WriteImage Method
Write the pixel data to a DNG file with the currently configured metadata.

Syntax

[Android.Runtime.Register("writeImage", "(Ljava/io/OutputStream;Landroid/media/Image;)V", "")]
public void WriteImage (System.IO.Stream dngOutput, Android.Media.Image pixels)

Parameters

dngOutput
an Java.IO.OutputStream to write the DNG file to.
pixels
an Android.Media.Image to write.

Exceptions

TypeReason
Java.IO.IOExceptionif an error was encountered in the output stream.
Java.Lang.IllegalArgumentExceptionif an image with an unsupported format was used.
Java.Lang.IllegalStateExceptionif not enough metadata information has been set to write a well-formatted DNG file.

Remarks

Write the pixel data to a DNG file with the currently configured metadata.

For this method to succeed, the Android.Media.Image input must contain Android.Graphics.ImageFormat.RawSensor pixel data, otherwise an Java.Lang.IllegalArgumentException will be thrown.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0