public class AVThumbnailUtils extends Object
SystemCapability.Multimedia#MEDIA_LIBRARY| 构造器 | 说明 |
|---|---|
AVThumbnailUtils() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static PixelMap |
createImageThumbnail(File file,
Size size) |
Creates a thumbnail of the specified image.
|
static PixelMap |
createVideoThumbnail(File file,
Size size) |
Creates a thumbnail of the representative keyframe in the specified video.
|
public static PixelMap createVideoThumbnail(File file, Size size)
file - Indicates the video file.size - Indicates the thumbnail size.null otherwise.