fixes due to color module updates
[PyX.git] / manual / bitmap.py
blobfec0efff8348dc7f8dd9e6537343a7a936e36a86
1 from pyx import *
3 image_bw = bitmap.image(2, 2, "L", b"\0\377\377\0")
4 image_rgb = bitmap.image(3, 2, "RGB", b"\77\77\77\177\177\177\277\277\277"
5 b"\377\0\0\0\377\0\0\0\377")
6 bitmap_bw = bitmap.bitmap(0, 1, image_bw, height=0.8)
7 bitmap_rgb = bitmap.bitmap(0, 0, image_rgb, height=0.8)
9 c = canvas.canvas()
10 c.insert(bitmap_bw)
11 c.insert(bitmap_rgb)
12 c.writePDFfile()