-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathof.multiimage-help.pd
91 lines (91 loc) · 2.9 KB
/
of.multiimage-help.pd
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
#N canvas 625 35 644 667 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 19 88 of.draw;
#X obj 19 608 of.plane 200 200 5 5;
#X obj 254 588 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 462 45 declare -lib ofelia;
#X text 253 616 0 = load fail;
#X text 252 603 1 = load success;
#X msg 308 179 clear;
#X msg 308 209 crop 100 100 100 100;
#X text 459 209 witdh \, height \, posX \, posY;
#X text 355 179 clear all pixels;
#X text 307 120 allocate width \, height colortype;
#X msg 308 239 cropfrom img 100 100 300 300;
#X msg 65 422 get;
#X msg 309 300 drawsubsection 100 0 100 100 120 200;
#X text 309 318 posX \, posY \, witdh \, height \, cropfromX \, cropfromY
\, posCropX \, posCropY, f 42;
#X text 307 133 0= Grayscale \, 1 =rgb \, 2 = rgba;
#X msg 309 270 setimagetype 0;
#X text 421 270 0= Grayscale \, 1 =rgb \, 2 = rgba;
#X floatatom 286 576 5 0 0 0 - - -;
#X floatatom 319 556 5 0 0 0 - - -;
#X floatatom 351 536 5 0 0 0 - - -;
#X text 99 422 get infos from right outlet;
#X text 327 577 width;
#X text 357 557 height;
#X msg 308 148 allocate 640 480 1;
#X text 192 305 save to file;
#X msg 47 179 open https://puredata.info/portal_css/Plone%20Default/logo.png
, f 31;
#X text 490 547 1 = rgb;
#X text 490 537 0 = grayscale;
#X text 490 557 3 = rgba;
#X text 397 537 Image type:;
#X obj 53 250 openpanel;
#X obj 53 229 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X floatatom 55 371 5 0 0 0 - - -;
#X msg 53 273 open \$1;
#X msg 73 447 buffer 2;
#X msg 55 397 index \$1;
#X text 204 337 draw texture;
#X floatatom 254 373 5 0 0 0 - - -;
#X text 48 160 open at current index (replace);
#X msg 57 304 save ../export.png;
#X msg 55 338 draw 2 0 0 0 200 100;
#X text 26 589 draw as texture on plane;
#X text 77 225 open img at current index;
#X text 138 448 resize buffer;
#X msg 144 273 open \$1 27;
#X text 144 256 open 27 picts once;
#X text 114 271 ->;
#X obj 19 472 of.multiimage data/img/0.png 27, f 34;
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 254 500 unpack 0 0 0 0 0, f 19;
#X floatatom 401 519 5 0 0 0 - - -;
#X text 442 513 total picts;
#X text 29 42 arguments: path/file0.ext \, total-picts;
#X text 28 22 A multi Image file loader. Picts could have any size
or type;
#X msg 35 132 open data/img/0.png 27;
#X text 32 110 open all pictures from 0.png to 26.png;
#X text 294 372 -> current pict nb...;
#X text 97 371 <--- pict index --->;
#X connect 1 0 49 0;
#X connect 13 0 49 0;
#X connect 27 0 49 0;
#X connect 32 0 35 0;
#X connect 33 0 32 0;
#X connect 34 0 37 0;
#X connect 35 0 49 0;
#X connect 36 0 49 0;
#X connect 37 0 49 0;
#X connect 39 0 49 1;
#X connect 41 0 49 0;
#X connect 42 0 49 0;
#X connect 49 0 2 0;
#X connect 49 1 52 0;
#X connect 51 0 50 0;
#X connect 52 0 3 0;
#X connect 52 1 19 0;
#X connect 52 2 20 0;
#X connect 52 3 21 0;
#X connect 52 4 53 0;
#X connect 57 0 49 0;