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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webcam Bitmapdata problem

Status
Not open for further replies.

bugsbycarlin

Programmer
Jul 25, 2007
1
US
Hi all,

I'm trying to make a webcam app, using a microsoft Lifecam VX-1000 and Flash Pro 8. It has 320x240 resolution. I capture the camera

image using

var image:BitmapData = new BitmapData(_root.view.width, _root.view.height);
image.draw(_root.view);

where view is my camera object.

The problem is, in the capture, my image is squished into the top left fourth of the screen, and the rest of the capture is white

space. I'm doing image processing, so I need the full resolution.

An image that explains what I'm talking about:

My project files:

Thanks for taking the time!
matt carlin
 
One thing you may want to try is instead of using the Camera object direct when you do BitmapData.draw, first capture the webcam stream to Video object - [tt]videoObject.attachVideo(Camera.get());[/tt] - then draw the videoObject - [tt]image.draw(videoObject);[/tt] Just an idea.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top