语言

TonemapCurve.GetPoint 方法

定义

重载

名称 说明
GetPoint(Color, Int32)

获取指定索引处的颜色通道的点。

GetPoint(Int32, Int32)

从所选颜色通道的曲线中获取一个点。

GetPoint(Color, Int32)

获取指定索引处的颜色通道的点。

[Android.Runtime.Register("getPoint", "(II)Landroid/graphics/PointF;", "")]
public Android.Graphics.PointF? GetPoint(Android.Graphics.Color colorChannel, int index);
[<Android.Runtime.Register("getPoint", "(II)Landroid/graphics/PointF;", "")>]
member this.GetPoint : Android.Graphics.Color * int -> Android.Graphics.PointF

参数

colorChannel
Color

#CHANNEL_RED、#CHANNEL_GREEN 或 #CHANNEL_BLUE

index
Int32

至少 0,但不大于 getPointCount(colorChannel)

返回

映射 (Pin, Pout) 该索引的音调的对

特性

例外

如果 colorChannel 或 index 已脱离范围

注解

获取指定索引处的颜色通道的点。

索引必须至少为 0,但不能大于 #getPointCount(int) 该 colorChannel索引。

点中的所有返回坐标都在 [#LEVEL_BLACK, #LEVEL_WHITE] 的范围之间。

Java文档android.hardware.camera2.params.TonemapCurve.getPoint(int, int)。

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

另请参阅

适用于

GetPoint(Int32, Int32)

从所选颜色通道的曲线中获取一个点。

public Android.Graphics.PointF? GetPoint(int colorChannel, int index);
member this.GetPoint : int * int -> Android.Graphics.PointF

参数

colorChannel
Int32

通道索引:0 表示红色,1 表示绿色,蓝色为 2。

index
Int32

从零开始的点索引。 它必须小于所选通道的点计数。

返回

X 坐标为输入级别且 Y 坐标为输出级别的点。 这两个级别都介于 0 和 1 之间,包括 0 和 1。

注解

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

适用于