aboutsummaryrefslogtreecommitdiff
path: root/Gem/pix_write-help.pd
blob: 5fb3ded894b314492dba0b5c52513329bb54d5e0 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#N canvas 536 123 795 620 10;
#X obj 17 419 cnv 15 430 190 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 28 422 Inlets:;
#X text 28 579 Outlets:;
#X obj 17 384 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 26 383 Arguments:;
#X obj 17 69 cnv 15 430 310 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 46 592 Outlet 1: gemlist;
#X text 52 436 Inlet 1: gemlist;
#X text 27 72 Description: Make a snapshot of the frame-buffer and
write it to a file;
#X text 52 522 Inlet 2: list: offsetX offsetY (in pixels \; default:
0 0);
#X text 52 548 Inlet 3: list: dimenX dimenY (in pixels \; default:
window-size);
#X text 466 15 GEM object;
#X obj 459 77 cnv 15 250 370 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 463 60 Example:;
#X obj 604 383 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 16 419 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 142 68 set create;
#X msg 268 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X restore 609 422 pd gemwin;
#X msg 609 403 create;
#X text 605 382 Create window:;
#X obj 460 106 cnv 15 240 230 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 584 289 256 256;
#X text 638 289 dimension;
#X text 637 267 offset;
#X msg 584 265 100 100;
#X obj 461 84 gemhead 51;
#X msg 470 116 file pix_test 99;
#X text 600 138 type : jpg;
#X text 600 127 name : pix_testXXXXX.jpg;
#X text 600 151 quality : 99;
#X text 600 115 set pix_write to:;
#X msg 490 221 auto \$1;
#X obj 490 202 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 491 245 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 510 244 WRITE! one file;
#X obj 464 399 gemhead;
#X obj 464 424 square;
#X text 463 379 display something;
#X obj 466 560 pix_snap;
#X text 464 539 See also:;
#X obj 466 584 pix_writer;
#X text 26 260 BE CAREFUL with the filename \, depending on your OS
\, relative names may be different. It start from the patch in Linux
or from HD (/) in osx for example. DO NOT USE SPACES in the basefilename
;
#X text 81 41 Class: pix object;
#X text 27 207 With the "file" message you can specify a base-filename
and the type of image-files you want to create. The actual name of
the file will be something like: "<basefilename><current#>.<ext>" (like
"GEM00001.tif");
#X text 60 22 Synopsis: [pix_write];
#X text 26 319 Supported file-types are TIFF (quality=0) and JPEG (quality>0).
TIFF-writing can be slow due to the large file size of uncompressed
images! JPEG might be faster (but quality will be lower due to compression)
;
#X text 543 221 activate/deactivate auto snapshot;
#X text 52 473 Inlet 1: file <quality> : set type/quality (quality=0:TIFF
\, quality>0:JPG);
#X text 52 498 Inlet 1: file <basefilename> <quality> : set basefilename
and type/quality;
#X text 52 449 Inlet 1: file <basefilename> : set basefilename \, and
type=TIFF;
#X obj 461 312 pix_write 0 0 500 500 3;
#X text 71 394 list: [offsetX offsetY [dimX dimY [color_format]]];
#X text 26 99 When banged [pix_write] will take a snapshot of the current
frame buffer and saves it to a file. When a "bang" message is sent
to [pix_write] \, that is the moment that something is captured from
the current frame buffer. When grabbing \, be sure that something is
in the rendering-buffer \, else you will get a black texture. color_mode
let you grab 1 (only red channel) \, 3 (RGB) or 4 (RGBA) byte per pixel.
RGBA mode is useful with framebuffer.;
#X msg 480 182 color_format 4;
#X connect 15 0 16 0;
#X connect 16 0 15 0;
#X connect 19 0 48 2;
#X connect 22 0 48 1;
#X connect 23 0 48 0;
#X connect 24 0 48 0;
#X connect 29 0 48 0;
#X connect 30 0 29 0;
#X connect 31 0 48 0;
#X connect 33 0 34 0;
#X connect 51 0 48 0;