Forum Topic: BitmapData to image file

(288 views • 14 replies)

This topic is 1 page long.

<< < > >>
None

Rantzien

Reply To Post Reply & Quote

Posted at: 7/7/06 02:40 PM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,422

Is it possible for Flash to save a BitmapData object to an image file?

BBS Signature

None

Rantzien

Reply To Post Reply & Quote

Posted at: 7/7/06 05:13 PM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,422

Bump, please help if you can

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 7/7/06 05:48 PM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,117

no

not unless PHP can write binary files, inwhich case you could pass the data per pixel to a PHP script to compile it to a bmp file or something

My social worker says im special!

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/7/06 05:51 PM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

At 7/7/06 05:48 PM, -dELta- wrote: no

not unless PHP can write binary files, inwhich case you could pass the data per pixel to a PHP script to compile it to a bmp file or something

yeah, you can.. but you'd need to pass the pixel data as one long string file because php only allows a set number of get/post vars =\


None

GameSQUID

Reply To Post Reply & Quote

Posted at: 7/7/06 05:56 PM

GameSQUID NEUTRAL LEVEL 02

Sign-Up: 07/13/05

Posts: 95

Try using Zinc or, the free alternative, Screenweaver.

Both these tools can convert an swf to a standalone program (exe), but in a much better way than the standard exe projector stuff that comes with Flash. They both provide an api that allows you to write to files. Not sure if it will work with binary files, maybe it's just text files, never tried this, but there's a good chance it might work.


None

Rantzien

Reply To Post Reply & Quote

Posted at: 7/7/06 06:49 PM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,422

Thanks for the tips. I might try Screenweaver out some time but for now I'd need it in .swf or nothing. Not much to do about.

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 7/7/06 07:41 PM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,117

well i made a small flash app to covnert a bitmap data instance into the binary data of a .bmp file, however it doesnt work because flash String's dont allow you to add null characters so it wont work

My social worker says im special!

BBS Signature

None

Rantzien

Reply To Post Reply & Quote

Posted at: 7/7/06 07:45 PM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,422

Ok... If anyone wonders this was what I wanted it for.

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 7/8/06 03:34 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,117

At 7/7/06 07:45 PM, Rantzien wrote: Ok... If anyone wonders this was what I wanted it for.

ive found out that with PHP you can write any type of file, so ill start on writing a set of PHP scripts to write your .bmp file :)

My social worker says im special!

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 7/8/06 04:44 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,117

or i would, if i didnt keep getting errors that fopen couldnt open the file!

My social worker says im special!

BBS Signature

None

Rantzien

Reply To Post Reply & Quote

Posted at: 7/8/06 05:47 AM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,422

Lol, thanks for trying. It wasn't extremely important though, but it would've been a nifty feature.

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/8/06 06:59 AM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

At 7/8/06 04:44 AM, -dELta- wrote: or i would, if i didnt keep getting errors that fopen couldnt open the file!

Lol, don't use php for creating images - there is an image library already, most servers should have it pre-installed (I'm not sure if all do) but it's the GD library.


None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/8/06 07:00 AM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

At 7/8/06 06:59 AM, liaaaam wrote: Lol, don't use php for creating images - there is an image library already, most servers should have it pre-installed (I'm not sure if all do) but it's the GD library.

Ok, I totally messed that up >_< I meant don't use fopen for creating images.

The GD library is a PHP plugin.


None

dELtaluca

Reply To Post Reply & Quote

Posted at: 7/8/06 02:31 PM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,117

At 7/8/06 07:00 AM, liaaaam wrote:
At 7/8/06 06:59 AM, liaaaam wrote: Lol, don't use php for creating images - there is an image library already, most servers should have it pre-installed (I'm not sure if all do) but it's the GD library.
Ok, I totally messed that up >_< I meant don't use fopen for creating images.

The GD library is a PHP plugin.

the GD library, USES fopen, fopen is the only way to open a file stream
and besides, i like writing the compilers myself

My social worker says im special!

BBS Signature

None

FlashKid

Reply To Post Reply & Quote

Posted at: 7/8/06 02:36 PM

FlashKid EVIL LEVEL 14

Sign-Up: 11/22/03

Posts: 1,178

No, I'm pretty sure it can't.

Below is what would of been a picture of my real time stratergy, it's just too bad I can't fit it's awesomeness in 599X50. Who thinks up these dimensions?!

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 08:21 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!