Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2004, 02:48 PM
Junior Member
 
Join Date: Aug 2004
Posts: 19
Default swfKit can capture?

What function of swfKit can capture and save pigture by set _x and _y ?



please, help me :'(
Reply With Quote
  #2 (permalink)  
Old 08-07-2004, 03:18 PM
Junior Member
 
Join Date: Aug 2004
Posts: 19
Default Re:swfKit can capture?

i test by this action...

//capture
capture =Image.captureScreen([500, 500, 100, 100]);
capture.save("c:\\test.jpg");


but pigture of test.jpg is fullscreen!!

Where my action is false? :-[

Reply With Quote
  #3 (permalink)  
Old 08-08-2004, 03:22 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:swfKit can capture?

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");
Reply With Quote
  #4 (permalink)  
Old 08-09-2004, 03:24 AM
Junior Member
 
Join Date: Aug 2004
Posts: 19
Default Re:swfKit can capture?

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... :'(
Reply With Quote
  #5 (permalink)  
Old 08-09-2004, 04:08 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:swfKit can capture?

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");
Reply With Quote
  #6 (permalink)  
Old 08-10-2004, 03:14 AM
Junior Member
 
Join Date: Aug 2004
Posts: 19
Default Re:swfKit can capture?

oh...
thank you very much.
Reply With Quote
  #7 (permalink)  
Old 09-01-2004, 11:43 PM
Junior Member
 
Join Date: Sep 2004
Posts: 2
Default Re:swfKit can capture?

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");
it doesn't work in an array
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.