#N canvas 17 223 835 493 10;
#X declare -lib Gem;
#X text 522 8 GEM object;
#X obj 8 273 cnv 15 430 170 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 275 Inlets:;
#X text 39 404 Outlets:;
#X obj 8 236 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 235 Arguments:;
#X obj 8 66 cnv 15 430 155 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 67 cnv 15 380 300 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 50 Example:;
#X obj 594 303 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 452 137 cnv 15 240 140 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X text 71 31 Class: pix object;
#X text 27 423 Outlet 1: gemlist;
#X text 33 289 Inlet 1: gemlist;
#X obj 706 196 sphere;
#X obj 451 74 gemhead 50;
#X obj 706 75 gemhead 49;
#X obj 482 207 spigot;
#X obj 484 141 tgl 15 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000 0 1;
#X msg 570 233 256 256;
#X text 50 12 Synopsis: [pix_snap];
#X text 13 187 When grabbing \, be sure that something is in the rendering-buffer \, else you will get a black texture., f 69;
#X text 33 302 Inlet 1: bang: do grab!;
#X text 63 246 list: [offsetX offsetY [dimX dimY]];
#X floatatom 527 75 5 0 0 0 - - - 0;
#X obj 451 114 rotate 0 1 0 0;
#X obj 706 146 translate -1 0 1 0;
#X obj 451 94 translate 1 0 1 0;
#X obj 451 187 t a b;
#X obj 706 124 rotate 0 1 1 1;
#N canvas 5 103 297 145 count 0;
#X obj 116 39 t b;
#X obj 116 60 i;
#X obj 143 61 + 1;
#X obj 170 62 % 360;
#X obj 116 17 inlet;
#X obj 116 94 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 1 1;
#X connect 4 0 0 0;
#X restore 746 104 pd count;
#X text 624 233 dimension;
#X text 623 211 offset;
#X text 506 151 drawn but before the square;
#X text 504 138 SNAP! after the sphere is;
#X text 29 67 Description: take a screenshot and convert it to a Pix;
#X text 13 91 When banged [pix_snap] will take a snapshot of the current frame buffer which can then be used as a pix. When a snap message (or a bang) is sent to [pix_snap] \, that is the moment that something is captured from the current frame buffer., f 69;
#X obj 451 281 pix_invert;
#X text 33 344 Inlet 1: snap: do grab!;
#X obj 706 97 t a b;
#X obj 706 168 color 1 0 0;
#X obj 482 227 t b b;
#X msg 518 227 0;
#X obj 451 256 pix_snap 0 0 500 500;
#X msg 570 209 100 100;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION take a screenshot and convert it to a Pix;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist bang dimen offset snap type;
#X text 20 105 INLET_1 list;
#X text 20 125 INLET_2 list;
#X text 20 145 OUTLET_0 gemlist;
#X text 10 165 AUTHOR IOhannes m zmölnig;
#X text 10 185 LICENSE GPL v2;
#X restore 598 8 pd META;
#X text 33 376 Inlet 2: list: offsetX offsetY (in pixels. default: 0 0), f 63;
#X text 33 391 Inlet 3: list: dimenX dimenY (in pixels. default: window-size), f 63;
#X text 33 357 Inlet 1: type BYTE|FLOAT|DOUBLE;
#X text 13 146 Values are captured as unsigned BYTES \, but you can change the type with the 'type' message (be aware that currently virtually no pix-objects can handle FLOAT images), f 69;
#X text 33 318 Inlet 1: dimen <w> <h>;
#X text 33 330 Inlet 1: offset <x> <y>;
#X msg 518 177 type FLOAT;
#X obj 601 307 _gemwin;
#X obj 451 303 _pix2rectangle 3;
#X connect 15 0 27 0;
#X connect 16 0 39 0;
#X connect 17 0 41 0;
#X connect 18 0 17 1;
#X connect 19 0 43 2;
#X connect 24 0 25 1;
#X connect 25 0 28 0;
#X connect 26 0 40 0;
#X connect 27 0 25 0;
#X connect 28 0 43 0;
#X connect 28 1 17 0;
#X connect 29 0 26 0;
#X connect 30 0 29 1;
#X connect 37 0 54 0;
#X connect 39 0 29 0;
#X connect 39 1 30 0;
#X connect 40 0 14 0;
#X connect 41 0 43 0;
#X connect 41 1 42 0;
#X connect 42 0 18 0;
#X connect 43 0 37 0;
#X connect 44 0 43 1;
#X connect 52 0 43 0;
