#N canvas 265 101 690 395 10;
#X declare -lib Gem;
#X text 502 8 GEM object;
#X obj 8 295 cnv 15 430 90 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 298 Inlets:;
#X text 38 355 Outlets:;
#X obj 8 256 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 255 Arguments:;
#X obj 7 76 cnv 15 430 175 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 230 250 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X obj 564 254 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 451 148 cnv 15 220 100 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 451 84 gemhead;
#X text 56 368 Outlet 1: gemlist;
#X text 63 312 Inlet 1: gemlist;
#X obj 451 263 _pix2rectangle 3;
#X obj 467 106 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000;
#N canvas 0 22 450 300 openpanel 0;
#X obj 114 62 inlet;
#X obj 121 254 outlet;
#X obj 114 125 openpanel;
#X msg 114 162 set open \$1;
#X obj 114 199 t b a;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 4 1 1 0;
#X restore 467 127 pd openpanel;
#X msg 467 155 open somefile.jpg;
#X text 63 325 Inlet 1: open <filename>;
#X text 29 76 Description: loads in an image file;
#X text 50 12 Synopsis: [pix_image];
#X text 71 31 Class: pix source;
#X text 16 93 [pix_image] loads in an image to be used a texture \, bitblit \, or something else. If you don't give it a default image file \, you can send the open message with a filename.;
#X text 63 266 <filename>;
#X text 63 338 Inlet 1: thread <1|0>;
#X text 237 339 see;
#N canvas 747 482 552 300 threaded 0;
#X text 53 58 on some systems (namely: linux) \, [pix_image] will usually be compiled with threaded image-loading.;
#X text 52 90 this will make loading of images more smooth \, as chances are low that it will block the entire Pd-process.;
#X text 56 130 caveat: some users have reported problems when using large numbers of [pix_image]s (e.g. 300) which will create 300 helper-threads. this might eventually slow down your machine.;
#X text 57 197 you can turn off thread-loading by sending a [thread 0( message to [pix_image] _before_ loading an image.;
#X restore 272 340 pd threaded loading;
#X msg 521 196 thread \$1;
#X obj 521 177 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X text 15 138 [pix_image] loads in TIFFs \, JPEGs and probably more (depending on your platform and how Gem was compiled);
#X obj 451 226 pix_image examples/data/fractal.JPG;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION loads in an image file;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist open thread;
#X text 20 105 OUTLET_0 gemlist;
#X text 10 125 AUTHOR IOhannes m zmölnig;
#X text 10 145 LICENSE GPL-2.0-or-later;
#X restore 578 8 pd META;
#X text 14 202 The image can be either drawn directly using [pix_draw] (VERY slow) or applied as a texture onto a Geo ([pix_texture]), f 68;
#X obj 569 257 _gemwin;
#X connect 11 0 30 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 17 0 30 0;
#X connect 27 0 30 0;
#X connect 28 0 27 0;
#X connect 30 0 14 0;
