TonemapCurve.GetPoint 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 |
|---|---|
| GetPoint(Color, Int32) |
Get the point for a color channel at a specified index. |
| GetPoint(Int32, Int32) |
Gets a point from the selected color channel's curve. |
GetPoint(Color, Int32)
Get the point for a color channel at a specified index.
[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
Parameters
- colorChannel
- Color
#CHANNEL_RED, #CHANNEL_GREEN, or #CHANNEL_BLUE
- index
- Int32
at least 0 but no greater than getPointCount(colorChannel)
Returns
the (Pin, Pout) pair mapping the tone for that index
- Attributes
Exceptions
if colorChannel or index was out of range
Remarks
Get the point for a color channel at a specified index.
The index must be at least 0 but no greater than #getPointCount(int) for that colorChannel.
All returned coordinates in the point are between the range of [#LEVEL_BLACK, #LEVEL_WHITE].
Java documentation for android.hardware.camera2.params.TonemapCurve.getPoint(int, int).
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.
See also
Applies to
GetPoint(Int32, Int32)
Gets a point from the selected color channel's curve.
public Android.Graphics.PointF? GetPoint(int colorChannel, int index);
member this.GetPoint : int * int -> Android.Graphics.PointF
Parameters
- colorChannel
- Int32
The channel index: 0 for red, 1 for green, or 2 for blue.
- index
- Int32
The zero-based point index. It must be less than the point count for the selected channel.
Returns
A point whose X coordinate is the input level and whose Y coordinate is the output level. Both levels are between 0 and 1, inclusive.
Remarks
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.