| java.lang.Object | |
| ↳ | android.media.ThumbnailUtils | 
Thumbnail generation routines for media provider.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | OPTIONS_RECYCLE_INPUT | 
         Constant used to indicate we should recycle the input in
         
          
           extractThumbnail(Bitmap, int, int, int)
          
         
         unless the output is the input.
         | 
       |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          | 
       ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          
          Create a video thumbnail for a video.
          
         | 
       ||||||||||
| 
          | 
        
          
          Creates a centered bitmap of the desired size.
          
         | 
       ||||||||||
| 
          | 
        
          
          Creates a centered bitmap of the desired size.
          
         | 
       ||||||||||
| 
         
          [Expand]
         
          
          Inherited Methods
          
         | 
       |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
         
           
         
         From class
         
          java.lang.Object
         
          | 
       |||||||||||
         Constant used to indicate we should recycle the input in
         
          
           extractThumbnail(Bitmap, int, int, int)
          
         
         unless the output is the input.
        
Create a video thumbnail for a video. May return null if the video is corrupt or the format is not supported.
| filePath | the path of video file | 
|---|---|
| kind | could be MINI_KIND or MICRO_KIND | 
Creates a centered bitmap of the desired size.
| source | original bitmap source | 
|---|---|
| width | targeted width | 
| height | targeted height | 
| options | options used during thumbnail extraction | 
Creates a centered bitmap of the desired size.
| source | original bitmap source | 
|---|---|
| width | targeted width | 
| height | targeted height |