PixelCopy.Request 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
Request(PixelCopy+PixelCopyRequest, IExecutor, IConsumer)
[Android.Runtime.Register("request", "(Landroid/view/PixelCopy$Request;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=34)]
public static void Request (Android.Views.PixelCopy.PixelCopyRequest request, Java.Util.Concurrent.IExecutor callbackExecutor, Java.Util.Functions.IConsumer listener);
[<Android.Runtime.Register("request", "(Landroid/view/PixelCopy$Request;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=34)>]
static member Request : Android.Views.PixelCopy.PixelCopyRequest * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- request
- PixelCopy.PixelCopyRequest
- callbackExecutor
- IExecutor
- listener
- IConsumer
- Attributes
Applies to
Request(Surface, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/Surface;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=24)]
public static void Request (Android.Views.Surface source, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/Surface;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=24)>]
static member Request : Android.Views.Surface * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- Surface
The source from which to copy
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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
Request(SurfaceView, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/SurfaceView;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=24)]
public static void Request (Android.Views.SurfaceView source, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/SurfaceView;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=24)>]
static member Request : Android.Views.SurfaceView * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- SurfaceView
The source from which to copy
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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
Request(Window, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/Window;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)]
public static void Request (Android.Views.Window source, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/Window;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)>]
static member Request : Android.Views.Window * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- Window
The source from which to copy
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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
Request(Surface, Rect, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/Surface;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)]
public static void Request (Android.Views.Surface source, Android.Graphics.Rect? srcRect, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/Surface;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)>]
static member Request : Android.Views.Surface * Android.Graphics.Rect * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- Surface
The source from which to copy
- srcRect
- Rect
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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
Request(SurfaceView, Rect, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/SurfaceView;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)]
public static void Request (Android.Views.SurfaceView source, Android.Graphics.Rect? srcRect, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/SurfaceView;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)>]
static member Request : Android.Views.SurfaceView * Android.Graphics.Rect * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- SurfaceView
The source from which to copy
- srcRect
- Rect
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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
Request(Window, Rect, Bitmap, PixelCopy+IOnPixelCopyFinishedListener, Handler)
Requests a copy of the pixels from a Surface
to be copied into
a provided Bitmap
.
[Android.Runtime.Register("request", "(Landroid/view/Window;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)]
public static void Request (Android.Views.Window source, Android.Graphics.Rect? srcRect, Android.Graphics.Bitmap dest, Android.Views.PixelCopy.IOnPixelCopyFinishedListener listener, Android.OS.Handler listenerThread);
[<Android.Runtime.Register("request", "(Landroid/view/Window;Landroid/graphics/Rect;Landroid/graphics/Bitmap;Landroid/view/PixelCopy$OnPixelCopyFinishedListener;Landroid/os/Handler;)V", "", ApiSince=26)>]
static member Request : Android.Views.Window * Android.Graphics.Rect * Android.Graphics.Bitmap * Android.Views.PixelCopy.IOnPixelCopyFinishedListener * Android.OS.Handler -> unit
Parameters
- source
- Window
The source from which to copy
- srcRect
- Rect
- dest
- Bitmap
The destination of the copy. The source will be scaled to match the width, height, and format of this bitmap.
Callback for when the pixel copy request completes
- listenerThread
- Handler
The callback will be invoked on this Handler when the copy is finished.
- Attributes
Remarks
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.