语言

ColorMatrix.SetRotate(Int32, Single) 方法

定义

按指定值设置颜色轴上的旋转。

[Android.Runtime.Register("setRotate", "(IF)V", "GetSetRotate_IFHandler")]
public virtual void SetRotate(int axis, float degrees);
[<Android.Runtime.Register("setRotate", "(IF)V", "GetSetRotate_IFHandler")>]
abstract member SetRotate : int * single -> unit
override this.SetRotate : int * single -> unit

参数

axis
Int32

颜色轴:0 表示红色,一个表示绿色,两个表示蓝色。

degrees
Single

RGB 组件空间中的旋转角度(以度为单位)。

特性

注解

按指定值设置颜色轴上的旋转。

axis=0 对应于围绕红色 axis=1 的旋转,对应于围绕绿色颜色 axis=2 的旋转,对应于围绕蓝色的旋转

Java文档android.graphics.ColorMatrix.setRotate(int, float)。

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

适用于