mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 13:05:09 +00:00
Merge pull request #1215 from barskern/add-scale-to-tikz-picture
Add scale parameter to includegraphics for tikz
This commit is contained in:
commit
800ead7a8f
@ -44,8 +44,11 @@ public class DriverImageTikz implements UDriver<UImage, TikzGraphics> {
|
||||
|
||||
public void draw(UImage shape, double x, double y, ColorMapper mapper, UParam param, TikzGraphics tikz) {
|
||||
final String rawFileName = shape.getRawFileName();
|
||||
|
||||
// TODO how to get this from the <img:file{scale=?}> parameter?
|
||||
double scale = 1.0;
|
||||
if (rawFileName != null) {
|
||||
final String raw = "\\includegraphics{" + rawFileName + "}";
|
||||
final String raw = "\\includegraphics[scale=" + scale + "]{" + rawFileName + "}";
|
||||
tikz.appendRaw(x, y, raw);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user