MediaStore.Images.Thumbnails
来源:互联网 发布:数据挖掘 软件 编辑:程序博客网 时间:2024/06/05 07:22
MediaStore.Images.Thumbnails
extends Objectimplements BaseColumns
Class Overview
This class allows developers to query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail
Summary
Type: DATA STREAM
StringDEFAULT_SORT_ORDERThe default sort order for this tableintFULL_SCREEN_KIND StringHEIGHTThe height of the thumbnailType: INTEGER (long)
StringIMAGE_IDThe original image for the thumbnalType: INTEGER (ID from Images table)
StringKINDThe kind of the thumbnailType: INTEGER (One of the values below)
intMICRO_KIND intMINI_KIND StringTHUMB_DATAThe blob raw data of thumbnailType: DATA STREAM
StringWIDTHThe width of the thumbnalType: INTEGER (long)
Constants
public static final String DATA
The data stream for the thumbnail
Type: DATA STREAM
public static final String DEFAULT_SORT_ORDER
The default sort order for this table
public static final int FULL_SCREEN_KIND
public static final String HEIGHT
The height of the thumbnail
Type: INTEGER (long)
public static final String IMAGE_ID
The original image for the thumbnal
Type: INTEGER (ID from Images table)
public static final String KIND
The kind of the thumbnail
Type: INTEGER (One of the values below)
public static final int MICRO_KIND
public static final int MINI_KIND
public static final String THUMB_DATA
The blob raw data of thumbnail
Type: DATA STREAM
public static final String WIDTH
The width of the thumbnal
Type: INTEGER (long)
Fields
public static final Uri EXTERNAL_CONTENT_URI
The content:// style URI for the "primary" external storage volume.
public static final Uri INTERNAL_CONTENT_URI
The content:// style URI for the internal storage.
Public Constructors
public MediaStore.Images.Thumbnails ()
Public Methods
public static void cancelThumbnailRequest (ContentResolver cr, long origId)
This method cancels the thumbnail request so clients waiting for getThumbnail will be interrupted and return immediately. Only the original process which made the getThumbnail requests can cancel their own requests.
Parameters
public static void cancelThumbnailRequest (ContentResolver cr, long origId, long groupId)
This method cancels the thumbnail request so clients waiting for getThumbnail will be interrupted and return immediately. Only the original process which made the getThumbnail requests can cancel their own requests.
Parameters
public static Uri getContentUri (String volumeName)
Get the content:// style URI for the image media table on the given volume.
Parameters
Returns
- the URI to the image media table on the given volume
public static Bitmap getThumbnail (ContentResolver cr, long origId, long groupId, int kind,BitmapFactory.Options options)
This method checks if the thumbnails of the specified image (origId) has been created. It will be blocked until the thumbnails are generated.
Parameters
Returns
- A Bitmap instance. It could be null if the original image associated with origId doesn't exist or memory is not enough.
public static Bitmap getThumbnail (ContentResolver cr, long origId, int kind,BitmapFactory.Options options)
This method checks if the thumbnails of the specified image (origId) has been created. It will be blocked until the thumbnails are generated.
Parameters
Returns
- A Bitmap instance. It could be null if the original image associated with origId doesn't exist or memory is not enough.
public static final Cursor query (ContentResolver cr, Uri uri, String[] projection)
public static final Cursor queryMiniThumbnail (ContentResolver cr, long origId, int kind, String[]projection)
public static final Cursor queryMiniThumbnails (ContentResolver cr, Uri uri, int kind, String[]projection)
- MediaStore.Images.Thumbnails
- MediaStore.Images.Thumbnails
- MediaStore.Images.Media.insertImage
- Resize images and save thumbnails
- MediaStore.Video.Thumbnails.getThumbnail获取本地视频缩略图
- MediaStore.Images.Media.insertImage 参数解读
- Thumbnails
- MediaStore.Images.Media.insertImage 得到保存图片的原始路径
- MediaStore
- MediaStore
- MediaStore
- 使用MediaStore.Images和 Cursor查询本地图片和图片缩略图
- 使用MediaStore.Images和 Cursor查询本地图片和图片缩略图
- 使用 MediaStore.Images.Media.getBitmap从Uri中获得bitmap以及其缺陷
- 使用MediaStore.Images和 Cursor查询本地图片和图片缩略图
- Android 图片压缩展示 防止使用MediaStore.Images.Media.getBitmap造成的OOM异常
- MediaStore.Images.Media.insertImage时发生Failed to insert image原因分析
- 【Android】调用MediaStore.Images.Media.insertImage保存图片时生成两张图片的问题
- Class.getResource和ClassLoader.getResource 获取资源文件路径
- android ORM框架的性能简单测试(androrm vs ormlite)
- search engine
- nginx之安装
- recommendation system
- MediaStore.Images.Thumbnails
- linux LCD驱动(二)--FrameBuffer
- 单例模式的简单描述(饿汉式,饱汉式,双重锁模式)
- Box2d碰撞粘滞的问题(java)
- Codeforces Round #248 (Div. 2) B - Kuriyama Mirai's Stones
- Linux LCD驱动(三)--图形显示
- 利用异常类记录调用日志
- 在Windows下使用OpenCL配置
- LeetCode213:House Robber II