File: gendoc.py

package info (click to toggle)
gamera 3.4.1%2Bsvn1423-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,292 kB
  • ctags: 25,015
  • sloc: xml: 122,324; ansic: 50,812; cpp: 50,489; python: 34,987; makefile: 119; sh: 101
file content (26 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download
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
#!/usr/bin/env python

from gamera import core, gendoc

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

import draw_text_helper

import sys
import os
import gamera.paths

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

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')
      ])