correct docstring (missed during cut&paste)
[PyX/mjg.git] / manual / bitmap.py
blob91a329ae8d1031365c8c09455baf4bdd382e6a5b
1 import sys; sys.path.insert(0, "..")
2 from pyx import *
3 from pyx import bitmap
5 image_bw = bitmap.image(2, 2, "L", "\0\377\377\0")
6 image_rgb = bitmap.image(3, 2, "RGB", "\77\77\77\177\177\177\277\277\277"
7 "\377\0\0\0\377\0\0\0\377")
8 bitmap_bw = bitmap.bitmap(0, 1, image_bw, height=0.8)
9 bitmap_rgb = bitmap.bitmap(0, 0, image_rgb, height=0.8)
11 c = canvas.canvas()
12 c.insert(bitmap_bw)
13 c.insert(bitmap_rgb)
14 c.writeEPSfile("bitmap")