File: gendoc.py

package info (click to toggle)
gamera 1:3.4.2+git20160808.1725654-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,312 kB
  • ctags: 24,991
  • sloc: xml: 122,324; ansic: 52,869; cpp: 50,664; python: 35,034; makefile: 118; sh: 101
file content (27 lines) | stat: -rwxr-xr-x 775 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python

from gamera import core, gendoc

import sys
import os
import gamera.paths

gamera.paths.test = os.path.join(os.path.dirname(__file__), '..', 'gamera', 'test')

import draw_text_helper

import wxversion
wxversion.select(["3.0", "2.8", "2.6", "2.5", "2.4"])

if __name__ == "__main__":
   core.init_gamera()
   gendoc.gendoc(classes=[
      ("gamera.core", "ImageInfo",
       'x_resolution y_resolution ncols nrows depth ncolors'),
      ("gamera.core", "ImageData",
       'nrows ncols page_offset_x page_offset_y stride size bytes pixel_type storage_format'),
      ("gamera.core", "RGBPixel",
       'red green blue hue saturation value cie_x cie_y cie_z cie_Lab_L cie_Lab_a cie_Lab_b cyan magenta yellow')
      ],
      sourceforge_logo=False)