MeteringPointFactory
public abstract class MeteringPointFactory
DisplayOrientedMeteringPointFactory |
A |
SurfaceOrientedMeteringPointFactory |
A |
A factory to create a MeteringPoint.
Users can call createPoint to create a MeteringPoint with x, y, default size. There is also another variant, createPoint for apps that want to also specify size.
| See also | |
|---|---|
MeteringPoint |
|
createPoint |
|
createPoint |
Summary
Public methods |
|
|---|---|
final @NonNull MeteringPoint |
createPoint(float x, float y)Creates a |
final @NonNull MeteringPoint |
createPoint(float x, float y, float size)Creates a |
static float |
Returns default point size. |
Public methods
createPoint
public final @NonNull MeteringPoint createPoint(float x, float y)
Creates a MeteringPoint by x, y.
The (x, y) is a position from the area defined by the specific MeteringPointFactory implementation, such as DisplayOrientedMeteringPointFactory or SurfaceOrientedMeteringPointFactory.
| Parameters | |
|---|---|
float x |
x to be converted. |
float y |
y to be converted. |
| Returns | |
|---|---|
@NonNull MeteringPoint |
A |
createPoint
public final @NonNull MeteringPoint createPoint(float x, float y, float size)
Creates a MeteringPoint by x, y, size.
The (x, y) is a position from the area defined by the specific MeteringPointFactory implementation, such as DisplayOrientedMeteringPointFactory or SurfaceOrientedMeteringPointFactory.
| Parameters | |
|---|---|
float x |
x to be converted. |
float y |
y to be converted. |
float size |
size of the MeteringPoint width and height(ranging from 0 to 1). It is the (normalized) percentage of the sensor width/height (or crop region width/height if crop region is set). |
| Returns | |
|---|---|
@NonNull MeteringPoint |
A |
getDefaultPointSize
public static float getDefaultPointSize()
Returns default point size. It is the default size of the MeteringPoint width and height (ranging from 0 to 1) which is a (normalized) percentage of the sensor width/height (or crop region width/height if crop region is set).
| See also | |
|---|---|
getSize |