Udostępnij za pośrednictwem


PointerIcon.Create(Bitmap, Single, Single) Method

Definition

Creates a custom pointer icon from the given bitmap and hotspot information.

[Android.Runtime.Register("create", "(Landroid/graphics/Bitmap;FF)Landroid/view/PointerIcon;", "", ApiSince=24)]
public static Android.Views.PointerIcon Create (Android.Graphics.Bitmap bitmap, float hotSpotX, float hotSpotY);
[<Android.Runtime.Register("create", "(Landroid/graphics/Bitmap;FF)Landroid/view/PointerIcon;", "", ApiSince=24)>]
static member Create : Android.Graphics.Bitmap * single * single -> Android.Views.PointerIcon

Parameters

bitmap
Bitmap

The bitmap for the icon.

hotSpotX
Single

The X offset of the pointer icon hotspot in the bitmap. Must be within the [0, bitmap.getWidth()) range.

hotSpotY
Single

The Y offset of the pointer icon hotspot in the bitmap. Must be within the [0, bitmap.getHeight()) range.

Returns

A pointer icon for this bitmap.

Attributes

Remarks

Creates a custom pointer icon from the given bitmap and hotspot information.

Java documentation for android.view.PointerIcon.create(android.graphics.Bitmap, float, float).

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