Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 04-26-2012, 06:19 PM   #1
Junior Member
Join Date: Mar 2010
Location: Reykjavik, Iceland
Posts: 80
Default Air on iPad/Android tablet, overwrite partial image

(For the busy people)
In AIR on iPad/Android tablet is there a way so I can open an image (not display it), overwrite part of that image with new bitmapdata and save a new instance of that image so that it goes to the PhotoStream/Gallery.

(For those who have a minute)
So I'm making an AIR app for both the iPad and Android Tablets. It's basically like those avatar builders where you can choose a body, arms, legs and all that stuff and make your own custom character. The app is actually almost done. The user can make his own character, share it to his facebook page, enjoy some great AdSense ads and listen to some original music while doing so. Also I added a feature that lets the user save the image he created (the character has optionally a solid color background or an image background) to the Gallery(Android) or Photos(iPad). So basically everything works... except for one little thing that's bugging me.

I use the JPGEncoder and just grab that part of the stage (frame) where the character is and save that image with FileStream. Really simple stuff. However the image isn't very big, it's only 210x400px and both the Android tablet I'm testing on (Galaxy Tab) and the iPad scale up all images when the user is browsing through them. That means that all the character images created from my app are pixelated, i.e. the quality is just not good enough. I've even had kids test the app and they're usually pretty disappointed when they see the images they saved because they were really crisp and nice inside the app.

So I got this idea but I don't know if it's possible... could I have a jpg/png image that is 210x"device's screen height". When the user wanted to save his character, the app would open that image in the background, grab the pixels on stage (the character), save those pixels onto a part of the big image and then save the whole thing to the Gallery/Photos.

That way I figured I could place the company's logo for example on the bottom and stuff like that. It would be like a template.
Frilli7 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:43 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.