DngCreator.WriteImage(Stream, Image) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write the pixel data to a DNG file with the currently configured metadata.
[Android.Runtime.Register("writeImage", "(Ljava/io/OutputStream;Landroid/media/Image;)V", "")]
public void WriteImage (System.IO.Stream dngOutput, Android.Media.Image pixels);
[<Android.Runtime.Register("writeImage", "(Ljava/io/OutputStream;Landroid/media/Image;)V", "")>]
member this.WriteImage : System.IO.Stream * Android.Media.Image -> unit
Parameters
- dngOutput
- Stream
an java.io.OutputStream
to write the DNG file to.
- pixels
- Image
an android.media.Image
to write.
- Attributes
Exceptions
if an error was encountered in the output stream.
if an image with an unsupported format was used.
if 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#RAW_SENSOR
pixel data, otherwise an java.lang.IllegalArgumentException
will be thrown.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.