aboutsummaryrefslogtreecommitdiff
path: root/Gem/pix_write-help.pd
blob: b1ad8a2e83ac07060a40f0f03d887130776c044f (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
#N canvas 23 49 795 602 10;
#X obj 17 399 cnv 15 430 190 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 28 402 Inlets:;
#X text 28 559 Outlets:;
#X obj 17 364 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 26 363 Arguments:;
#X obj 17 69 cnv 15 430 290 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 46 572 Outlet 1: gemlist;
#X text 52 416 Inlet 1: gemlist;
#X text 27 72 Description: Make a snapshot of the frame-buffer and
write it to a file;
#X text 72 374 list: [offsetX offsetY [dimX dimY]];
#X text 52 502 Inlet 2: list: offsetX offsetY (in pixels \; default:
0 0);
#X text 52 528 Inlet 3: list: dimenX dimenY (in pixels \; default:
window-size);
#X text 466 15 GEM object;
#X obj 459 77 cnv 15 250 300 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 463 60 Example:;
#X obj 604 313 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 352 pd gemwin;
#X msg 609 333 create;
#X text 605 312 Create window:;
#X obj 460 106 cnv 15 240 190 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 584 249 256 256;
#X text 638 249 dimension;
#X text 637 227 offset;
#X msg 584 225 100 100;
#X obj 461 84 gemhead 51;
#X obj 461 272 pix_write 0 0 500 500;
#X msg 488 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 181 auto \$1;
#X obj 490 162 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 491 205 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 510 204 WRITE! one file;
#X obj 464 329 gemhead;
#X obj 464 354 square;
#X text 463 309 display something;
#X obj 466 510 pix_snap;
#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.;
#X text 464 489 See also:;
#X obj 466 534 pix_writer;
#X text 26 240 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 187 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 299 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 181 activate/deactivate auto snapshot;
#X text 52 453 Inlet 1: file <quality> : set type/quality (quality=0:TIFF
\, quality>0:JPG);
#X text 52 478 Inlet 1: file <basefilename> <quality> : set basefilename
and type/quality;
#X text 52 429 Inlet 1: file <basefilename> : set basefilename \, and
type=TIFF;
#X connect 16 0 17 0;
#X connect 17 0 16 0;
#X connect 20 0 25 2;
#X connect 23 0 25 1;
#X connect 24 0 25 0;
#X connect 26 0 25 0;
#X connect 31 0 25 0;
#X connect 32 0 31 0;
#X connect 33 0 25 0;
#X connect 35 0 36 0;