Lenguaje

MeteringRectangle Constructores

Definición

Sobrecargas

Nombre Description
MeteringRectangle(Rect, Int32)

Cree un nuevo rectángulo de medición.

MeteringRectangle(Point, Size, Int32)

Cree un nuevo rectángulo de medición.

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

Cree un nuevo rectángulo de medición.

MeteringRectangle(Rect, Int32)

Cree un nuevo rectángulo de medición.

[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

Parámetros

rect
Rect

un rectángulo no-null con todas las dimensiones >x,y,w,h = 0

meteringWeight
Int32

peso >= 0

Atributos

Excepciones

si alguno de los parámetros era negativo

si alguno de los argumentos era NULL

Comentarios

Cree un nuevo rectángulo de medición.

Los datos del rectángulo se copian; la referencia no se conserva.

Java documentación para android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(android.graphics.Rect, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

MeteringRectangle(Point, Size, Int32)

Cree un nuevo rectángulo de medición.

[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

Parámetros

xy
Point

que nonullPoint es con x,y >= 0

dimensions
Size

un valor distinto denullandroid.util.Size Size ancho, alto >= 0

meteringWeight
Int32

peso >= 0

Atributos

Excepciones

si alguno de los parámetros era negativo

si alguno de los argumentos era NULL

Comentarios

Cree un nuevo rectángulo de medición.

Los datos del punto xyse copian; la referencia no se conserva.

Java documentación para android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(android.graphics.Point, android.util.Size, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

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

Cree un nuevo rectángulo de medición.

[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

Parámetros

x
Int32

coordinate >= 0

y
Int32

coordinate >= 0

width
Int32

width >= 0

height
Int32

height >= 0

meteringWeight
Int32

peso entre #METERING_WEIGHT_MIN e #METERING_WEIGHT_MAX inclusive

Atributos

Excepciones

si alguno de los parámetros era negativo

Comentarios

Cree un nuevo rectángulo de medición.

Java documentación para android.hardware.camera2.params.MeteringRectangle.MeteringRectangle(int, int, int, int, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a