increase designsize deviation to 4 (needs some further investigation)
[PyX/mjg.git] / examples / bitmap / minimal.txt
blobe9e502d6feabb6e9bb36aa6eb6c17edee9213962
1 Store bitmap data using PyX
3 While the main purpose of PyX is to create vector graphics, it is also possible
4 to store bitmap data in the PyX output. In this example, we show how to
5 create a simple data structure containing the bitmap data ... and how such data
6 can then be transformed into an object which can be inserted into a PyX canvas.
8 The first step of providing the bitmap data is creating an `image` instance.
9 You need to specify the size of your data (in pixels) followed by strings
10 describing the type of the bitmap and the bitmap data itself.
12 ! The bitmap functionality currently uses a fixed color depth of 8 bits per
13 color. The pixels are listed row by row, one after the other starting at the
14 upper left corner of the image.
16 Once the image data has been prepared, a `bitmap` instance can be created and
17 inserted into a PyX canvas for later output.