B4J Library [custom view] PolygonOverlay

java_zWDvKPIKXp.gif


A simple custom view for drawing polygons.

Features:
  • Double-click or click the first point to close the polygon.
  • Press Esc to cancel the current polygon (see the code in B4XMainPage).
  • Polygons are drawn as vector graphics.
  • The view uses two layers. The front layer displays temporary lines as the mouse moves.
B4J only.
 

Attachments

Back
Top