PixelCopy.PixelCopyRequest.Builder.OfWindow 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
| Name | Description |
|---|---|
| OfWindow(View) |
Creates a PixelCopy Builder for the Window that the given View is attached to. Note that this copy request is not cropped to the area the View occupies by default. If that behavior is desired, use View.getLocationInWindow(int[]) combined with Builder.setSourceRect(Rect) to set a crop area to restrict the copy operation. |
| OfWindow(Window) |
Creates a PixelCopy Builder for the given Window |
OfWindow(View)
Creates a PixelCopy Builder for the Window that the given View is attached to. Note that this copy request is not cropped to the area the View occupies by default. If that behavior is desired, use View.getLocationInWindow(int[]) combined with Builder.setSourceRect(Rect) to set a crop area to restrict the copy operation.
[Android.Runtime.Register("ofWindow", "(Landroid/view/View;)Landroid/view/PixelCopy$Request$Builder;", "", ApiSince=34)]
public static Android.Views.PixelCopy.PixelCopyRequest.Builder OfWindow(Android.Views.View source);
[<Android.Runtime.Register("ofWindow", "(Landroid/view/View;)Landroid/view/PixelCopy$Request$Builder;", "", ApiSince=34)>]
static member OfWindow : Android.Views.View -> Android.Views.PixelCopy.PixelCopyRequest.Builder
Parameters
- source
- View
The Android.Views.View value used for source.
Returns
The result of the of window operation.
- Attributes
Remarks
For details, see the Android reference documentation for android.view.PixelCopy.Request.Builder.ofWindow.
Java documentation for android.view.PixelCopy.Request.Builder.ofWindow.
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
OfWindow(Window)
Creates a PixelCopy Builder for the given Window
[Android.Runtime.Register("ofWindow", "(Landroid/view/Window;)Landroid/view/PixelCopy$Request$Builder;", "", ApiSince=34)]
public static Android.Views.PixelCopy.PixelCopyRequest.Builder OfWindow(Android.Views.Window source);
[<Android.Runtime.Register("ofWindow", "(Landroid/view/Window;)Landroid/view/PixelCopy$Request$Builder;", "", ApiSince=34)>]
static member OfWindow : Android.Views.Window -> Android.Views.PixelCopy.PixelCopyRequest.Builder
Parameters
- source
- Window
The Android.Views.Window value used for source.
Returns
The result of the of window operation.
- Attributes
Remarks
For details, see the Android reference documentation for android.view.PixelCopy.Request.Builder.ofWindow.
Java documentation for android.view.PixelCopy.Request.Builder.ofWindow.
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.