#N canvas 6 61 629 507 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 8 335 cnv 15 430 160 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 341 Inlets:;
#X text 38 465 Outlets:;
#X obj 8 300 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 299 Arguments:;
#X obj 7 76 cnv 15 430 220 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 450 128 cnv 15 160 120 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 451 84 gemhead;
#X text 16 478 Outlet 1: gemlist;
#X text 23 355 Inlet 1: gemlist;
#X text 71 31 Class: pix source;
#X obj 451 256 square;
#X floatatom 544 203 3 0 5 0 image$ - - 0;
#X text 29 76 Description: loads in multiple image files;
#X text 63 311 <filename> (with wildcard *) for images to load;
#X text 23 448 Inlet 2: <int> : select image (starting at 0);
#X obj 451 226 pix_imageInPlace;
#X text 456 376 see also:;
#X obj 522 376 pix_multiimage;
#X text 25 158 This is potentially slow if you are trying to change between a lot of images \, but it doesn't use a lot of texture ram.;
#X text 25 199 [pix_imageInPlace] sends all of the image data to texture RAM when the preload message is received. This means that you cannot process any of the pixel data \, but it is extremely quick to change between the various images.;
#X text 20 257 Additionally \, you do not need a [pix_texture] object.;
#X text 34 277 [pix_imageInPlace] loads TIFF \, JPEG and PNG images.;
#X text 50 12 Synopsis: [pix_imageInPlace];
#X msg 474 161 download;
#X msg 475 188 purge;
#X msg 460 135 preload myFiles*.tif 5;
#X text 23 368 Inlet 1: preload <filename> <#> : open images (the wildcard in the filename is expanded with integer 0..#);
#X text 23 397 Inlet 1: download : load the "preload"ed images into texture-RAM;
#X text 24 427 Inlet 1: purge: delete images from texture-RAM;
#X text 24 100 [pix_imageInPlace] is slightly different than [pix_multiimage]. When you select an image to display with [pix_multiimage] \, it copies over the image data to the pix-buffer \, which is then used by [pix_texture].;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION loads in multiple image files;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist preload download purge;
#X text 20 105 INLET_1 int;
#X text 20 125 OUTLET_0 gemlist;
#X text 10 145 AUTHOR IOhannes m zmölnig;
#X text 10 165 LICENSE GPL v2;
#X restore 518 8 pd META;
#X obj 522 260 _gemwin;
#X connect 11 0 20 0;
#X connect 16 0 20 1;
#X connect 20 0 15 0;
#X connect 28 0 20 0;
#X connect 29 0 20 0;
#X connect 30 0 20 0;
