次の方法で共有


DngCreator.WriteImage(Stream, Image) Method

Definition

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.

Java documentation for android.hardware.camera2.DngCreator.writeImage(java.io.OutputStream, android.media.Image).

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.

Applies to