School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,444 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,520 people online right now. Registration is fast and FREE... Join Now!




Graphics in canvas stored into an instance of bitmapData in Flex

 

Graphics in canvas stored into an instance of bitmapData in Flex

airowang

11 Jun, 2009 - 06:53 PM
Post #1

New D.I.C Head
*

Joined: 9 Jun, 2009
Posts: 2

I've learned some examples on printing screens of a movie and stored into an image.
But my problem is that I draw graphics on a canvas object and want to convert it to a jpg or png file,so I should first store in an instance of bitmapData class.
How should I do? Errors occured every time I try.
I'm begging experts to help me .
Thank you very much.

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: Graphics In Canvas Stored Into An Instance Of BitmapData In Flex

11 Jun, 2009 - 10:26 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
I believe this is normally done by using the bitmapData class and then sending the information to another, more powerful (not flash) program which then converts it to jpeg, or png format. PHP, Java, Python, C++, C, ASP, C#, and numerous other languages should be quite sufficient for this. The real trick there is getting Flash and the other program to talk nicely.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is offlineProfile CardPM
+Quote Post

airowang

RE: Graphics In Canvas Stored Into An Instance Of BitmapData In Flex

12 Jun, 2009 - 03:33 AM
Post #3

New D.I.C Head
*

Joined: 9 Jun, 2009
Posts: 2

QUOTE(BetaWar @ 11 Jun, 2009 - 10:26 PM) *

I believe this is normally done by using the bitmapData class and then sending the information to another, more powerful (not flash) program which then converts it to jpeg, or png format. PHP, Java, Python, C++, C, ASP, C#, and numerous other languages should be quite sufficient for this. The real trick there is getting Flash and the other program to talk nicely.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.


Thank you very much and i've solve my problem.
I just draw some graphics on a canvas and want to store the canvas into an instance of bitmapData.Then just using bitmapdata.draw(canvas) method makes it! I made it more complex, I think.
Thank you!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 01:42AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month