MediaMetadataRetriever.GetFrameAtIndex Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetFrameAtIndex(Int32, MediaMetadataRetriever+BitmapParams) |
This method is similar to |
GetFrameAtIndex(Int32) |
This method is similar to |
GetFrameAtIndex(Int32, MediaMetadataRetriever+BitmapParams)
This method is similar to #getFrameAtIndex(int, BitmapParams)
except that
the default for BitmapParams
will be used.
[Android.Runtime.Register("getFrameAtIndex", "(ILandroid/media/MediaMetadataRetriever$BitmapParams;)Landroid/graphics/Bitmap;", "GetGetFrameAtIndex_ILandroid_media_MediaMetadataRetriever_BitmapParams_Handler", ApiSince=28)]
public virtual Android.Graphics.Bitmap? GetFrameAtIndex (int frameIndex, Android.Media.MediaMetadataRetriever.BitmapParams params);
[<Android.Runtime.Register("getFrameAtIndex", "(ILandroid/media/MediaMetadataRetriever$BitmapParams;)Landroid/graphics/Bitmap;", "GetGetFrameAtIndex_ILandroid_media_MediaMetadataRetriever_BitmapParams_Handler", ApiSince=28)>]
abstract member GetFrameAtIndex : int * Android.Media.MediaMetadataRetriever.BitmapParams -> Android.Graphics.Bitmap
override this.GetFrameAtIndex : int * Android.Media.MediaMetadataRetriever.BitmapParams -> Android.Graphics.Bitmap
Parameters
- frameIndex
- Int32
0-based index of the video frame. The frame index must be that of
a valid frame. The total number of frames available for retrieval can be queried
via the #METADATA_KEY_VIDEO_FRAME_COUNT
key.
Returns
A Bitmap containing the requested video frame, or null if the retrieval fails.
- Attributes
Remarks
Java documentation for android.media.MediaMetadataRetriever.getFrameAtIndex(int)
.
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
GetFrameAtIndex(Int32)
This method is similar to #getFrameAtIndex(int, BitmapParams)
except that
the default for BitmapParams
will be used.
[Android.Runtime.Register("getFrameAtIndex", "(I)Landroid/graphics/Bitmap;", "GetGetFrameAtIndex_IHandler", ApiSince=28)]
public virtual Android.Graphics.Bitmap? GetFrameAtIndex (int frameIndex);
[<Android.Runtime.Register("getFrameAtIndex", "(I)Landroid/graphics/Bitmap;", "GetGetFrameAtIndex_IHandler", ApiSince=28)>]
abstract member GetFrameAtIndex : int -> Android.Graphics.Bitmap
override this.GetFrameAtIndex : int -> Android.Graphics.Bitmap
Parameters
- frameIndex
- Int32
0-based index of the video frame. The frame index must be that of
a valid frame. The total number of frames available for retrieval can be queried
via the #METADATA_KEY_VIDEO_FRAME_COUNT
key.
Returns
A Bitmap containing the requested video frame, or null if the retrieval fails.
- Attributes
Remarks
This method is similar to #getFrameAtIndex(int, BitmapParams)
except that the default for BitmapParams
will be used.
Java documentation for android.media.MediaMetadataRetriever.getFrameAtIndex(int)
.
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.