MeteringRectangle Constructors

Definition

Overloads

MeteringRectangle(Rect, Int32)

Create a new metering rectangle.

MeteringRectangle(Point, Size, Int32)

Create a new metering rectangle.

MeteringRectangle(Int32, Int32, Int32, Int32, Int32)

Create a new metering rectangle.

MeteringRectangle(Rect, Int32)

Create a new metering rectangle.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;I)V", "")]
public MeteringRectangle (Android.Graphics.Rect? rect, int meteringWeight);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;I)V", "")>]
new Android.Hardware.Camera2.Params.MeteringRectangle : Android.Graphics.Rect * int -> Android.Hardware.Camera2.Params.MeteringRectangle

Parameters

rect
Rect

a non-null rectangle with all x,y,w,h dimensions >= 0

meteringWeight
Int32

weight >= 0

Attributes

Exceptions

if any of the parameters were negative

if any of the arguments were null

Remarks

Create a new metering rectangle.

The rectangle data is copied; the reference is not retained.

Java documentation for android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(android.graphics.Rect, 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.

Applies to

MeteringRectangle(Point, Size, Int32)

Create a new metering rectangle.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Point;Landroid/util/Size;I)V", "")]
public MeteringRectangle (Android.Graphics.Point? xy, Android.Util.Size? dimensions, int meteringWeight);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Point;Landroid/util/Size;I)V", "")>]
new Android.Hardware.Camera2.Params.MeteringRectangle : Android.Graphics.Point * Android.Util.Size * int -> Android.Hardware.Camera2.Params.MeteringRectangle

Parameters

xy
Point

a non-nullPoint with both x,y >= 0

dimensions
Size

a non-nullandroid.util.Size Size with width, height >= 0

meteringWeight
Int32

weight >= 0

Attributes

Exceptions

if any of the parameters were negative

if any of the arguments were null

Remarks

Create a new metering rectangle.

The point xy's data is copied; the reference is not retained.

Java documentation for android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(android.graphics.Point, android.util.Size, 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.

Applies to

MeteringRectangle(Int32, Int32, Int32, Int32, Int32)

Create a new metering rectangle.

[Android.Runtime.Register(".ctor", "(IIIII)V", "")]
public MeteringRectangle (int x, int y, int width, int height, int meteringWeight);
[<Android.Runtime.Register(".ctor", "(IIIII)V", "")>]
new Android.Hardware.Camera2.Params.MeteringRectangle : int * int * int * int * int -> Android.Hardware.Camera2.Params.MeteringRectangle

Parameters

x
Int32

coordinate >= 0

y
Int32

coordinate >= 0

width
Int32

width >= 0

height
Int32

height >= 0

meteringWeight
Int32

weight between #METERING_WEIGHT_MIN and #METERING_WEIGHT_MAX inclusively

Attributes

Exceptions

if any of the parameters were negative

Remarks

Create a new metering rectangle.

Java documentation for android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(int, int, int, 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.

Applies to