Udostępnij za pośrednictwem


DngCreator.SetThumbnail Method

Definition

Overloads

SetThumbnail(Bitmap)

Set the thumbnail image.

SetThumbnail(Image)

Set the thumbnail image.

SetThumbnail(Bitmap)

Set the thumbnail image.

[Android.Runtime.Register("setThumbnail", "(Landroid/graphics/Bitmap;)Landroid/hardware/camera2/DngCreator;", "")]
public Android.Hardware.Camera2.DngCreator SetThumbnail (Android.Graphics.Bitmap pixels);
[<Android.Runtime.Register("setThumbnail", "(Landroid/graphics/Bitmap;)Landroid/hardware/camera2/DngCreator;", "")>]
member this.SetThumbnail : Android.Graphics.Bitmap -> Android.Hardware.Camera2.DngCreator

Parameters

pixels
Bitmap

a android.graphics.Bitmap of pixel data.

Returns

this #DngCreator object.

Attributes

Exceptions

if the given thumbnail image has a dimension larger than MaxThumbnailDimension.

Remarks

Set the thumbnail image.

Pixel data will be converted to a Baseline TIFF RGB image, with 8 bits per color channel. The alpha channel will be discarded. Thumbnail images with a dimension larger than #MAX_THUMBNAIL_DIMENSION will be rejected.

Java documentation for android.hardware.camera2.DngCreator.setThumbnail(android.graphics.Bitmap).

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

SetThumbnail(Image)

Set the thumbnail image.

[Android.Runtime.Register("setThumbnail", "(Landroid/media/Image;)Landroid/hardware/camera2/DngCreator;", "")]
public Android.Hardware.Camera2.DngCreator SetThumbnail (Android.Media.Image pixels);
[<Android.Runtime.Register("setThumbnail", "(Landroid/media/Image;)Landroid/hardware/camera2/DngCreator;", "")>]
member this.SetThumbnail : Android.Media.Image -> Android.Hardware.Camera2.DngCreator

Parameters

pixels
Image

an android.media.Image object with the format android.graphics.ImageFormat#YUV_420_888.

Returns

this #DngCreator object.

Attributes

Exceptions

if the given thumbnail image has a dimension larger than MaxThumbnailDimension.

Remarks

Set the thumbnail image.

Pixel data is interpreted as a android.graphics.ImageFormat#YUV_420_888 image. Thumbnail images with a dimension larger than #MAX_THUMBNAIL_DIMENSION will be rejected.

Java documentation for android.hardware.camera2.DngCreator.setThumbnail(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