command line allows to pass resolution (x y), amount of colors (c), brightness mapping for darkest color in percent (b) and the optional stencil mapping to color s:
 "DMDpaint.exe x y c b s"

 for example: "DMDpaint.exe 120 30 16 10 5" (meaning '120'x'30' pixels, '16' colors, '10'% brightness for darkest color, stencil maps to color '5')
 
 the default values are: 128 32 4 20 2 (if nothing is specified, meaning '128'x'32' pixels, '4' colors, '20'% brightness for darkest color, stencil maps to color '2')



right mouse button: help/menu
'ESC': exit

'z': undo (works per frame)
'y': redo (works per frame)

'+'/'-': zoom window

'x': set stencil/sprite mode   (stencil color is displayed transparent)
'v': change DMD drawing scheme (tiny LEDs/bigger LEDs/full pixels)
'n': change DMD color scheme
	
'1' -'0' : set current color  1-10
'F1'-'F6': set current color 11-16
'q'/'w'/'e'/'r': directly draw single pixels using color 1/2/3/4

cursor keys or mouse: change cursor position
'SPACE': draw lock on/off (to draw directly with the cursor keys)

'c': clear with current color
'f': floodfill with current color from cursorposition

'l': load picture/DMDF (MUST be size of DMD) using stucki dithering (Linux: 'test.pgm') -> most of the time best visual results
'k': load picture/DMDF (MUST be size of DMD) using ordered dithering (Linux: 'test.pgm')
'j': load picture/DMDF (MUST be size of DMD) using simple rounding (Linux: 'test.pgm')

'h': load TXT picture (MUST be size of DMD) using values 0..(numcolors-1) (Linux: 'test.txt')

'o': load AVI/GIF/DMDF (MUST be size of DMD) using stucki dithering (Linux: not supported)  -> if amount of colors high (~16): most of the time best visual results
'i': load AVI/GIF/DMDF (MUST be size of DMD) using ordered dithering (Linux: not supported) -> if amount of colors low  (~ 4): most of the time best visual results
'u': load AVI/GIF/DMDF (MUST be size of DMD) using simple rounding (Linux: not supported)

's': save PGM (size of DMD) using brightness as seen in preview (Linux: 'save.pgm') -> normal users should use this!
'd': save PGM (size of DMD) using linearized brightness (Linux: 'dmdfreewpc.pgm')
'a': save TXT picture (size of DMD) using values 0..(numcolors-1) in a row (Linux: 'dmd0123.txt')
'b': save DMDF (size of DMD, font will be extracted from a single frame by assuming 19x5 characters,
                i.e. all 95 ASCII chars that future pinball supports. having stencil mode enabled by pressing 'x'
                also saves correct transparency to the DMDF) using brightness as seen in preview (Linux: 'dmdf.dmdf')
',': save DMDF (size of DMD, font will be extracted from all the DMD frames by assuming a fontsize the same as the full DMD resolution,
                i.e. all 95 ASCII chars that future pinball supports. having stencil mode enabled by pressing 'x'
                also saves correct transparency to the DMDF) using brightness as seen in preview (Linux: 'dmdf.dmdf')

'PAGE UP'  : change display to show next DMD page
'PAGE DOWN': change display to show previous DMD page
'p'        : copy everything from previous DMD page into the current DMD page
't'        : delete current frame (can not be undone!)
'g'        : insert a frame (can not be undone!)

'm'   : animation playback
'HOME': set first DMD frame
'END' : set last DMD frame