The Daily Click ::. Forums ::. Klik Coding Help ::. Export into Image File - Is it Possible ?
 

Post Reply  Post Oekaki 
 

Posted By Message

MrDanINSANE



Registered
  30/06/2009
Points
  39
1st July, 2009 at 07:48:21 -

Hello guys,
I'm very new to MMF2 and trying to develop some kind of a Paint / Drawing software.

I have a few questions, and I guess I will have more questions related to this.
I hope that you guys will be able to help me.

Exporting to File:
- I put few active objects on the frame, no code yet no nothing.
I also made a button, I want this button to CAPTURE specific Area (for example 300x300)
and let me export what it see into image file (like you can save in drawing pictures).

Is it possible ? if it is can you please guide me a step-by-step ?

Thanks ahead everybody
Have a wonderful day !


* I'm sorry about my bad English.

 
In-House Production Studio for Music & Animations:
www.KrazyKartoons.net

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
1st July, 2009 at 07:58:26 -

Try messing with the "screen capture object", and the "overlay redux"

You should be able to archive what you want most easily with the screen capture object, including the exporting part.

 
n/a

MrDanINSANE



Registered
  30/06/2009
Points
  39
1st July, 2009 at 09:08:49 -

Thanks for the fast reply !

I'm trying the "screen capture object" first.
I tried this:

- When Button clicked > Capture Frame Area
- Set Filename from selector

When I tried to follow the: "Final name (leave empty to open a file selector at runtime)
and click the Button no file selector pops up, no nothing.
But I want the open fie selector, so I can type the file name only when I click the button (export button).

Update:
Now it works, But I wonder if I can go even further, like it will capture only the active objects without background and export it as ALPHA ? (maybe PNG fies ? or it only works with BMP without alpha ?)

Edited by MrDanINSANE

 
In-House Production Studio for Music & Animations:
www.KrazyKartoons.net

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
1st July, 2009 at 16:31:17 -

I'm pretty sure that you can't keep the background transparent.
But in case you'd be making a animation app and don't want to erase the background of every frame manualy, you could make a script in an advanced picture editing software that would do it for you. It's still a problem with shaded image or rotation though.

 
...

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
1st July, 2009 at 17:21:39 -

Changing the color of the background to black then taking another screen shot, then comparing the difference between the frames could work. That is beyond my scope though. I believe you would need the overlay object.

 
n/a

MrDanINSANE



Registered
  30/06/2009
Points
  39
1st July, 2009 at 17:36:15 -

Thank you both,

It sound very complicated for me.
I did try to mess around with the overlay object but that confused me.

Is there any chance for somebody to upload an example source or step-by-step tutorial please ? it sounds like a very good feature and I would love to add it.

Thanks ahead everybody

 
In-House Production Studio for Music & Animations:
www.KrazyKartoons.net

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
1st July, 2009 at 19:07:17 -

Well, if anyone here knows how to decrypt a .png file's gibberish " ­tIMEÙ76°âÊï" type of data, you could use the Mid$() function to replace the colour of your choice by the alpha-of-zero value(whatever it is) dirrectly to the saved file.

 
...
   

Post Reply



 



Advertisement

Worth A Click