Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the result of a tween as a GIF file #56

Open
Briahas opened this issue Jun 10, 2016 · 6 comments
Open

Store the result of a tween as a GIF file #56

Briahas opened this issue Jun 10, 2016 · 6 comments

Comments

@Briahas
Copy link

Briahas commented Jun 10, 2016

Hi, I'm trying to perform subj but with no luck. Is it possible somehow?

@PrimaryFeather
Copy link

PrimaryFeather commented Jun 13, 2016

What exactly are you trying to do - store the result of a tween as a GIF file?

@Briahas
Copy link
Author

Briahas commented Jun 13, 2016

Yes

@Briahas Briahas changed the title Tween to Gif animation Store the result of a tween as a GIF file Jun 13, 2016
@PrimaryFeather
Copy link

Sparrow does not contain such a functionality, sorry!

@PrimaryFeather
Copy link

PrimaryFeather commented Jun 17, 2016

@racarone - in the latest version, is there a way to store the content of a bitmap object or the stage to a file? If that's possible, you can probably find some other library to link those images together in one GIF.

@racarone
Copy link

racarone commented Jun 17, 2016

You can get a UIImage representation of the stage with the drawToImage method. Though there is also a debugQuickLookObject method on DisplayObject that will return a UIImage representation of the display object and its contents. You could, like Daniel said, use another library and link the images together after capturing a UIImage from the display object for each frame you needed.

@Briahas
Copy link
Author

Briahas commented Jun 17, 2016

@racarone Thanks for answers. My Sparrow version is too low for this (1.2). I did it through [[SPTexture alloc] initWithWidth:....] -> [[SPBitmapData alloc] initWithTexture:] -> [bmap drawDisplayObject:sprite]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants