diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-03-03 12:16:58 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-03-03 12:26:20 -0800 |
commit | d5d207f0a13b883a408fa6a7a948cabf1754c9b3 (patch) | |
tree | 36b523240d5ae8be5a019078a0a0aa38f9da2fe9 | |
parent | e18d97868bd39cc762d37ecd696c2b234143938b (diff) | |
download | PyX.jl-d5d207f0a13b883a408fa6a7a948cabf1754c9b3.tar.gz PyX.jl-d5d207f0a13b883a408fa6a7a948cabf1754c9b3.zip |
change pipeGS's 'device' from kwarg to arg
-rw-r--r-- | src/PyX.jl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,8 +42,8 @@ writemime(io::IO, ::MIME"application/pdf", c::PyxCanvas) = writePDFfile(c, io) writemime(io::IO, ::MIME"application/eps", c::PyxCanvas) = writeEPSfile(c, io) writemime(io::IO, ::MIME"image/eps", c::PyxCanvas) = writeEPSfile(c, io) writemime(io::IO, ::MIME"application/postscript", c::PyxCanvas) = writePSfile(c, io) -writemime(io::IO, ::MIME"image/png", c::PyxCanvas) = write(io, pipeGS(c; device="png16m")) -writemime(io::IO, ::MIME"image/jpeg", c::PyxCanvas) = write(io, pipeGS(c; device="jpeg")) +writemime(io::IO, ::MIME"image/png", c::PyxCanvas) = write(io, pipeGS(c, "png16m")) +writemime(io::IO, ::MIME"image/jpeg", c::PyxCanvas) = write(io, pipeGS(c, "jpeg")) ####### Exports export canvas, path, deco, deco_stroked, deco_filled @@ -128,7 +128,7 @@ function __init__() pytype_mapping(canvas.canvas, PyxCanvas) end -function pipeGS(g::PyxCanvas, args...; device="png16m", kwargs...) +function pipeGS(g::PyxCanvas, device="png16m", args...; kwargs...) f = g[:pipeGS](args...; device=device, kwargs...) d = f[:read]() f[:close]() |