DJI Mobile SDK Documentation

      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
      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
      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

      Input Parameters:
      List<OpenPoint> pointsThe 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
      int getFillColor() 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Gets the polygon fill color.

      Supported since MSDK 5.20.1

      Return:
      intThe 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

      Input Parameters:
      int fillColorThe fill color (ARGB). The alpha channel controls transparency, for example 0x7FFF0000 is semi-transparent red.
      method getStrokeWidth
      float getStrokeWidth() 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Gets the stroke width.

      Supported since MSDK 5.20.1

      Return:
      floatThe 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

      Input Parameters:
      float strokeWidthThe stroke width (px). 0 means no stroke; a value greater than 0 draws the stroke line.
      method getStrokeColor
      int getStrokeColor() 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Gets the stroke color.

      Supported since MSDK 5.20.1

      Return:
      intThe 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

      Input Parameters:
      int strokeColorThe stroke color (ARGB). Effective when strokeWidth is greater than 0.
      method
      method getLabel
      String getLabel() 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Gets the text label.

      Supported since MSDK 5.20.1

      Return:
      StringThe text label. No label is drawn when it is an empty string.
      method
      method setLabel
      void setLabel(String label) 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Sets the text label.

      Supported since MSDK 5.20.1

      Input Parameters:
      String labelThe text label. No label is drawn when it is an empty string.
      method getLabelColor
      int getLabelColor() 
      Package:dji.open.pilot.base.ui.cameraview
      Description:

      Gets the label text color.

      Supported since MSDK 5.20.1

      Return:
      intThe 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

      Input Parameters:
      int labelColorThe label text color (ARGB). Effective when the label is not empty.