Hi,
I have customized PlantUML and my code generate a BufferedImage, it does not use the graphic system of PlantUML.
So at export time I need, in my exportDiagram() method, to insert my image into an ImageBuilder. I don't want to export directly a PNG because I need the eps output.
My solution was (look at the image variable):
builder.addUDrawable(new UDrawable() {
public void drawU(UGraphic ug) {
ug = ug.apply(new UChangeColor(HtmlColorUtils.BLACK));
ug.draw(new UImage(image));
}
});
Is this the best solution? Because the resulting eps file does not have the same quality as the PNG image.
Thx
Mar