语言

Gesture.ToBitmap 方法

定义

重载

名称 说明
ToBitmap(Int32, Int32, Int32, Color)

使用透明背景创建手势的位图。

ToBitmap(Int32, Int32, Edge, Int32, Color)

使用透明背景创建手势的位图。

ToBitmap(Int32, Int32, Int32, Color)

使用透明背景创建手势的位图。

[Android.Runtime.Register("toBitmap", "(IIII)Landroid/graphics/Bitmap;", "GetToBitmap_IIIIHandler")]
public virtual Android.Graphics.Bitmap? ToBitmap(int width, int height, int inset, Android.Graphics.Color color);
[<Android.Runtime.Register("toBitmap", "(IIII)Landroid/graphics/Bitmap;", "GetToBitmap_IIIIHandler")>]
abstract member ToBitmap : int * int * int * Android.Graphics.Color -> Android.Graphics.Bitmap
override this.ToBitmap : int * int * int * Android.Graphics.Color -> Android.Graphics.Bitmap

参数

width
Int32

width

height
Int32

身高

inset
Int32

插图

color
Color

颜色

返回

位图

特性

注解

使用透明背景创建手势的位图。

Java文档android.gesture.Gesture.toBitmap(int, int, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ToBitmap(Int32, Int32, Edge, Int32, Color)

使用透明背景创建手势的位图。

[Android.Runtime.Register("toBitmap", "(IIIII)Landroid/graphics/Bitmap;", "GetToBitmap_IIIIIHandler")]
public virtual Android.Graphics.Bitmap? ToBitmap(int width, int height, Android.Views.Edge edge, int numSample, Android.Graphics.Color color);
[<Android.Runtime.Register("toBitmap", "(IIIII)Landroid/graphics/Bitmap;", "GetToBitmap_IIIIIHandler")>]
abstract member ToBitmap : int * int * Android.Views.Edge * int * Android.Graphics.Color -> Android.Graphics.Bitmap
override this.ToBitmap : int * int * Android.Views.Edge * int * Android.Graphics.Color -> Android.Graphics.Bitmap

参数

width
Int32

目标位图的宽度

height
Int32

目标位图的高度

edge
Edge

边缘

numSample
Int32

numSample

color
Color

颜色

返回

位图

特性

注解

使用透明背景创建手势的位图。

Java文档android.gesture.Gesture.toBitmap(int, int, int, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于