|
|||
|
Sorry, there is a mistake in the help file.
The parameters should be [top, left, right, bottom] So the code should be Code:
capture =Image.captureScreen([500, 500, 600, 600]);
capture.save("c:\\test.jpg");
|
|
|||
|
What is it? ???
I test capture of any code is... (I want capture pigture 100x100 and _x,_y to center of movie) 1.capture =Image.captureMovie([200, 200, 100, 100]); capture.save("c:\\test.jpg"); pigture from save ??? ![]() 2.capture =Image.captureMovie(200, 200, 100, 100); capture.save("c:\\test.jpg"); pigture from save :-\ ![]() 3.capture =Image.captureMovie([0, 0, 100, 100]); capture.save("c:\\test.jpg"); pigture from save :P ![]() 4.capture =Image.captureMovie(0, 0, 100, 100); capture.save("c:\\test.jpg"); pigture from save ![]() ![]() A.... I think... capture =Image.captureMovie([200, 200, 100, 100]); // this code is false :-X capture =Image.captureMovie(0, 0, 100, 100); // this code is true ,but can't set _x,_y .??? please help me again... :'( |
|
|||
|
There is a mistake in the help file. The correct usage should be
captureMovie(array) captureScreen(array) The array parameter contains coordinates of the upper-left and lower-right corners of a rectangle. array: [Xmin, Ymin, Xmax, Ymax] Example: Code:
var left = 200, top = 200;
var width = 100, height = 100;
capture =Image.captureMovie([left, top, left + width, top + height]);
capture.save("c:\\test.jpg");
|
|
|||
|
that still doesn't work for me. even using that exact code, it will still capture the entire movie!
edit: ok i got it, the code should be Code:
var left = 200, top = 200;
var width = 100, height = 100;
capture =Image.captureMovie(left, top, left + width, top + height);
capture.save("c:\\test.jpg");
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|