I have done this patch.
It works with a [gemwin] with [dimen 800 600( and capture a picture with
dimen = 1600x1200.
Hoping it helps.
++

Jack



Le lundi 16 novembre 2009 à 01:41 +0100, Matteo Sisti Sette a écrit :
> Hi,
> 
> I have to modify some patches made by another person.
> 
> In one of them, [pix_write] is used to save screenshots of the image 
> being shown in the gemwin.
> 
> However, the user would like to be able to save a higher quality image, 
> namely 2000x2000 (so it can be printed).
> To my knowledge (and to the knowledge of the person who made the patch), 
> the only way to do this is to increase the resolution of the gemwin. But 
>   since the resolution of the screen cannot be increased so much, the 
> complete image cannot be seen.
> The user wants to be able to still see the whole image (at its usual 
> resolution of 480x480) while saving screenshots at a higher resolution.
> 
> So the question is: is it possible to save an image which is not the one 
> being rendered into the gemwin? So that I can for example generate a big 
> image, save it, reduce its size, and render the reduced image instead of 
> the big one?
> 
> A slow-down due to great cpu consumption at the moment of "capturing" 
> the image would be acceptable (though not desired, obviously) provided 
> that it is limited to the moments when the image is captured.
> 
> Any idea?
> 
> P.S.: The image is being generared by "tiling" the image from a camera, 
> i.e. repeating it: that's why it make sense to save the resulting image 
> in a higher resolution: if the camera has for example a res of 640x480 
> and it is being repeated in a 5x5 grid, up to 3200x2400 resolution 
> "makes sense" for the saved image.
> 
> 
> Thank you very much
> m.
> 
> 
#N canvas 81 127 1108 585 10;
#X obj -189 148 gemhead;
#X obj -189 185 gemframebuffer;
#X obj -189 241 s gemchain;
#X obj -189 211 translateXYZ 0 0 -4;
#X msg -176 5 destroy;
#X obj -107 121 loadbang;
#X obj -190 287 r gemchain;
#X obj -190 307 separator;
#X obj -190 367 cube 0.1;
#X obj -190 347 rotateXYZ 0 45 0;
#X obj -190 327 translateXYZ -3 -1 0;
#X obj -50 287 r gemchain;
#X obj -50 307 separator;
#X obj -50 327 translateXYZ 2 2 0;
#X obj -50 347 scaleXYZ 2 1 1;
#X obj -50 367 sphere 0.1 20;
#X msg -107 148 dimen 1600 1200;
#X obj 309 42 gemhead 51;
#X obj 309 407 rectangle 5.33333 4;
#X obj 309 382 pix_coordinate;
#X msg 469 336 0 0 0.5 0 0.5 0.5 0 0.5;
#X msg 469 310 0 0.5 0.5 0.5 0.5 1 0 1;
#X obj 80 287 r gemchain;
#X obj 80 307 separator;
#X obj 80 347 pix_video;
#X obj 80 367 pix_texture;
#X obj 80 387 rectangle 4 3;
#X obj 80 327 translateXYZ 0 0 -1;
#X obj 309 347 pix_texture;
#X obj -189 38 gemwin;
#X msg -189 -25 dimen 800 600 \, create \, 1;
#X msg 625 336 0.5 0 1 0 1 0.5 0.5 0.5;
#X msg 625 306 0.5 0.5 1 0.5 1 1 0.5 1;
#X obj 309 296 gemlist;
#X msg 309 174 4;
#X obj 309 197 until;
#X obj 309 150 t b a b;
#X obj 449 239 f;
#X obj 479 239 + 1;
#X msg 464 167 0;
#X obj 449 263 sel 0 1 2 3;
#X obj 309 461 pix_write 0 0 800 600;
#X obj 309 222 t b b;
#X obj 309 121 t a b;
#X obj 309 97 spigot 0;
#X obj 354 75 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 309 436 t b a;
#X obj -50 407 r gemchain;
#X obj -50 427 separator;
#X obj -138 399 loadbang;
#X msg -138 423 draw line;
#X text -31 -27 <- 1;
#X text 376 75 <- 2;
#X obj -50 447 sphere 5 20;
#X text 619 454 Jack/RYBN 2009;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 28 1;
#X connect 3 0 2 0;
#X connect 4 0 29 0;
#X connect 5 0 16 0;
#X connect 6 0 7 0;
#X connect 7 0 10 0;
#X connect 9 0 8 0;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 16 0 1 0;
#X connect 17 0 44 0;
#X connect 18 0 46 0;
#X connect 19 0 18 0;
#X connect 20 0 19 1;
#X connect 21 0 19 1;
#X connect 22 0 23 0;
#X connect 23 0 27 0;
#X connect 24 0 25 0;
#X connect 25 0 26 0;
#X connect 27 0 24 0;
#X connect 28 0 19 0;
#X connect 30 0 29 0;
#X connect 31 0 19 1;
#X connect 32 0 19 1;
#X connect 33 0 28 0;
#X connect 34 0 35 0;
#X connect 35 0 42 0;
#X connect 36 0 34 0;
#X connect 36 1 33 1;
#X connect 36 2 39 0;
#X connect 37 0 38 0;
#X connect 37 0 40 0;
#X connect 38 0 37 1;
#X connect 39 0 37 1;
#X connect 40 0 20 0;
#X connect 40 1 31 0;
#X connect 40 2 32 0;
#X connect 40 3 21 0;
#X connect 42 0 33 0;
#X connect 42 1 37 0;
#X connect 43 0 36 0;
#X connect 43 1 45 0;
#X connect 44 0 43 0;
#X connect 45 0 44 1;
#X connect 46 0 41 0;
#X connect 46 1 41 0;
#X connect 47 0 48 0;
#X connect 48 0 53 0;
#X connect 49 0 50 0;
#X connect 50 0 53 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to