class DrawingPolygonInfo
@Keep class DrawingPolygonInfo implements Parcelable
Package: dji.open.pilot.base.ui.cameraview
Description:
Polygon drawing area information. Supported since MSDK 5.20.1
Class Members:
method getPoints
List<OpenPoint> getPoints ()
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the polygon vertex list. Supported since MSDK 5.20.1
Return:
List<OpenPoint > The vertex list (normalized coordinates, 0.0 to 1.0). The vertices are automatically closed head-to-tail in order, and are drawn only when there are at least 3 points.
method setPoints
void setPoints (List<OpenPoint> points)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the polygon vertex list. Supported since MSDK 5.20.1
List<OpenPoint > points The vertex list (normalized coordinates, 0.0 to 1.0). The vertices are automatically closed head-to-tail in order, and are drawn only when there are at least 3 points.
method getFillColor
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the polygon fill color. Supported since MSDK 5.20.1
Return:
int The fill color (ARGB). The alpha channel controls transparency, for example 0x7FFF0000 is semi-transparent red.
method setFillColor
void setFillColor (int fillColor)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the polygon fill color. Supported since MSDK 5.20.1
int fillColor The fill color (ARGB). The alpha channel controls transparency, for example 0x7FFF0000 is semi-transparent red.
method getStrokeWidth
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the stroke width. Supported since MSDK 5.20.1
Return:
float The stroke width (px). 0 indicates no stroke.
method setStrokeWidth
void setStrokeWidth (float strokeWidth)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the stroke width. Supported since MSDK 5.20.1
float strokeWidth The stroke width (px). 0 means no stroke; a value greater than 0 draws the stroke line.
method getStrokeColor
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the stroke color. Supported since MSDK 5.20.1
Return:
int The stroke color (ARGB). Effective when strokeWidth is greater than 0.
method setStrokeColor
void setStrokeColor (int strokeColor)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the stroke color. Supported since MSDK 5.20.1
int strokeColor The stroke color (ARGB). Effective when strokeWidth is greater than 0.
method getLabel
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the text label. Supported since MSDK 5.20.1
Return:
String The text label. No label is drawn when it is an empty string.
method setLabel
void setLabel (String label)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the text label. Supported since MSDK 5.20.1
String label The text label. No label is drawn when it is an empty string.
method getLabelColor
Package: dji.open.pilot.base.ui.cameraview
Description:
Gets the label text color. Supported since MSDK 5.20.1
Return:
int The label text color (ARGB). Effective when the label is not empty.
method setLabelColor
void setLabelColor (int labelColor)
Package: dji.open.pilot.base.ui.cameraview
Description:
Sets the label text color. Supported since MSDK 5.20.1
int labelColor The label text color (ARGB). Effective when the label is not empty.