repo.or.cz
/
PyX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git]
/
examples
/
bitmap
/
jpeg.py
blob
0f786be08e310dd11251bcddf6d2a40d88660758
1
from
pyx
import
*
2
3
i
=
bitmap
.
jpegimage
(
"jpeg.jpg"
)
4
c
=
canvas
.
canvas
()
5
c
.
insert
(
bitmap
.
bitmap
(
0
,
0
,
i
,
compressmode
=
None
))
6
c
.
writeEPSfile
(
"jpeg"
)
7
c
.
writePDFfile
(
"jpeg"
)
8
c
.
writeSVGfile
(
"jpeg"
)