Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image capture

Status
Not open for further replies.

mrcuss

MIS
Feb 18, 2005
4
GB
Hi,
i am trying to capture a single image to a cast member within DirectorMX.
Example,
on mousedown,
Capture image to cast member,
Simple.

i have tried many Xtra's which work but find when i try and simplyfy them it all goes wrong.
can anybody recommend an Xtra and a simple script which will fill my cast with .bmp's

Many thanks in advance.

Marcus...
 
What image are u trying to capture?
The stage's image? Or from some other bitmaps?
U can try using copyPixels
 
the image is from a webcam or other external device.
sorry didnt make that clear in the post..
 
You may want to try "image":
--
tWebcamImage = member("some webcam xtra").image
member("webcam image capture").image = tWebcamImage
--
or if you have the webcam video on the stage you can capture the stage then crop:
--
tStageImage = (the stage).image
tWebcamImage = tStageImage.crop(rect(100, 100, 420, 340))
member("webcam image capture").image = tWebcamImage
--

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top