#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 -233017 -66577 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 -195568 -66577 0; #X text 17 299 Arguments:; #X obj 7 76 cnv 15 430 220 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 453 60 Example:; #X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 0 0 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 132 112 create \, 1; #X msg 198 112 destroy; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 6 0; #X connect 3 1 5 0; #X connect 3 1 7 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 519 293 pd gemwin; #X msg 519 274 create; #X text 515 253 Create window:; #X obj 450 128 cnv 15 160 120 empty empty empty 20 12 0 14 -24198 -66577 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# - -; #X text 29 76 Description: loads in multiple image files; #X text 63 311 (with wildcard *) for images to load; #X text 23 448 Inlet 2: : 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 <#> : 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]. ; #X obj 518 8 declare -lib Gem; #X connect 10 0 11 0; #X connect 11 0 10 0; #X connect 14 0 23 0; #X connect 19 0 23 1; #X connect 23 0 18 0; #X connect 31 0 23 0; #X connect 32 0 23 0; #X connect 33 0 23 0;