Using images taken from camea as spriteSheets

What will be the best way to use an image shot by the camera as sprite sheet data?

Something similar described the thread below:
http://developer.anscamobile.com/forum/2011/03/09/apply-spritesheet-data-images-taken-camera

Thanks. [import]uid: 44389 topic_id: 7706 reply_id: 307706[/import]

(1) I understand this is a bugs-only forum, though, for those questions not getting answered it would be nice to be clearly informed whether it’s not doable for the moment, and if any alternative ways exist.

(2) Is there a way to show the name instead of the ‘dev5’ for my posts? It can’t seem to be changed in ‘My Account’ > ‘Personal Info’ section. [import]uid: 44389 topic_id: 7706 reply_id: 27334[/import]

as long as the images can be put into a sprite – -why not?

should work. Have you looked at Texture Packer at http://texturepacker.com/?

C. [import]uid: 24 topic_id: 7706 reply_id: 27336[/import]

Hi carlos,

--obtain and put the camera-taken image to horseObject  
local horseObject  
local onComplete = function(event)  
 horseObject = event.target  
end  
media.show( media.Camera, onComplete )  
   
sprite.newSpriteSheetFromData(horseObject, spriteData)  

This won’t work since horseObject is a displayObject returned from the device camera, not a string(to the local image path)… so any alternatives?

[import]uid: 44389 topic_id: 7706 reply_id: 27347[/import]

also TexturePacker only works with assembling external images, but what I need is the image obtained directly by media.show(). [import]uid: 44389 topic_id: 7706 reply_id: 27393[/import]

well…

take a picture
foo = media.show(oncomplete event);

save = (display.save(foo)
load picture = (display.newImage(foo))

repeat to get animation frames
hold them in arrry

loop array (table) animate

c [import]uid: 24 topic_id: 7706 reply_id: 27458[/import]

That works, but the saved image is gonna be capped to the device content size, like 320 width maximum on a 3gs.

What we are trying to do is take a 2M (say 2048 x 1536) image from the camera and enable the user to choose a region(say 512 x 512) on it, so when scaling it down (320x320), it would be able to fit the device screen size without losing the resolution.

The current Corona display.save() mechanics will force the image cap, so later on if trying to use a portion of it, we are forced to scale up the part, leading in unacceptable resolution.

Any fix available on this? Thanks Carlos. [import]uid: 44389 topic_id: 7706 reply_id: 40813[/import]

Need for you to enter a bug for me and I will fast track it. We fixed a bunch of bugs camera related. This one seems a bit different from the ones I seen we fixed.

Or do we have a bug number against it?

C. [import]uid: 24 topic_id: 7706 reply_id: 40850[/import]

Yes, it’s 6026.

By the way I can no longer see the content I’ve submitted:

Case not foundNo case was found associated with the ticket: 6026_ejihcaole9gg22t

Is this what it’s supposed to be? [import]uid: 44389 topic_id: 7706 reply_id: 41274[/import]

well see this link instead:
http://bugs.anscamobile.com/default.asp?6026&P18_ixProject=20 [import]uid: 44389 topic_id: 7706 reply_id: 41275[/import]