我想使用展开地图写入处理中的 PGraphics。
import de.fhpotsdam.unfolding.*;
import de.fhpotsdam.unfolding.geo.*;
import de.fhpotsdam.unfolding.utils.*;
import de.fhpotsdam.unfolding.providers.*;
UnfoldingMap map;
PGraphics g;
void setup() {
size(800, 600);
map= new UnfoldingMap(this, new OpenStreetMap.OpenStreetMapProvider( ));
map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
g = createGraphics(width, height);
}
void draw() {
map.draw();
g.beginDraw();
//g.map.draw();no
//map.draw(g);nope
g.endDraw();
}
map.draw()
如何将此打印到缓冲区g
?