How to use openMap4u
Create a new openMap4u instance (with the default settings).OpenMap4u oM4u = new OpenMap4u();
Create a rectangular drawing canvas with the given width (=4 cm) and height (=2 cm).
OverrideDrawOrWriteable myCanvas = oM4u.getCanvas(4.0, 1.0);
Draw "Hello world" at the given position on the canvas.
myCanvas.draw(
oM4u.get(Text.class).text("Hello world").center(0.5,0.25)
);
canvas.write("myText.png");
new OpenMap4u().canvas(4.0,1.0).draw(
om4u.get(Text.class).text("Hello world").center(0.5,0.25)
).write("myText.png");