src/main/java/eu/digitisation/image/Bimage.java
public void add(Polygon p, Color color, float stroke, float[] pattern) {
        Graphics2D g = createGraphics();
        BasicStroke bs = new BasicStroke(stroke, BasicStroke.CAP_BUTT,
                BasicStroke.JOIN_MITER, 1, pattern, 0.0f);
        g.setColor(color);
        g.setStroke(bs);
        g.drawPolygon(p);
        g.dispose();
    }
/**
     * Add a dashed polygonal frontier to the image
     *
     * @param p a polygon
     * @param color the color of the polygon
     * @param stroke the line width in pixels
     * @param pattern the dash pattern, for example, {4f,2f} draws dashes with
     * length 4-units and separated 2 units
     */
Add a dashed polygonal frontier to the image
@param p a polygon
@param color the color of the polygon
@param stroke the line width in pixels
@param pattern the dash pattern, for example, {4f,2f} draws dashes with
length 4-units and separated 2 units
Add a dashed polygonal frontier to the image @param p a polygon @param color the color of the polygon @param stroke the line width in pixels @param pattern the dash pattern for example { 4f 2f } draws dashes with length 4 - units and separated 2 units
public void add(Polygon p, Color color, float stroke, float[] pattern) {
        Graphics2D g = createGraphics();
        BasicStroke bs = new BasicStroke(stroke, BasicStroke.CAP_BUTT,
                BasicStroke.JOIN_MITER, 1, pattern, 0.0f);
        g.setColor(color);
        g.setStroke(bs);
        g.drawPolygon(p);
        g.dispose();
    }
public void add ( Polygon p , Color color , float stroke , float [ ] pattern ) { Graphics2D g = createGraphics ( ) ; BasicStroke bs = new BasicStroke ( stroke , BasicStroke . CAP_BUTT , BasicStroke . JOIN_MITER , 1 , pattern , 0.0f ) ; g . setColor ( color ) ; g . setStroke ( bs ) ; g . drawPolygon ( p ) ; g . dispose ( ) ; }
Add a dashed polygonal frontier to the image
 @param p a polygon
 @param color the color of the polygon
 @param stroke the line width in pixels
 @param pattern the dash pattern, for example, {4f,2f} draws dashes with
 length 4-units and separated 2 units
Add a dashed polygonal frontier to the image @param p a polygon @param color the color of the polygon @param stroke the line width in pixels @param pattern the dash pattern for example { 4f 2f } draws dashes with length 4 - units and separated 2 units