Click or drag to resize

AndroidGalleryManagergetThumbnail Method

Gets the thumbnail data as the byte array.

ByteBuffer byteBuffer = ByteBuffer.allocate(bitmap.getByteCount());bitmap.copyPixelsToBuffer(byteBuffer);return byteBuffer.array();

Namespace:  AndroidLocalGalleryPlugin
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public byte[] getThumbnail(
	int id,
	int mediaType,
	int thumbSize
)

Parameters

id
Type: SystemInt32
Identifier.
mediaType
Type: SystemInt32
Media type.
thumbSize
Type: SystemInt32
Thumb size.

Return Value

Type: Byte
The thumbnail.
See Also