Image Manipulation?

Ramis,

The first app idea that I got involves your basic image manipulation.

I just need to fill in a display object with a color, without it filling over the transparent parts. Or I need to replace a color. It’s part of a designing app I’m making the involves changing colors of on screen images.

So far the only way to do this is to use the bitmask thing, and that’s a hack at best.

I will probably just not be able to work on this app (which I really wanted to make, and it was going to be a really great one too), and just focus on what the boundaries are of their api.

Would be nice if yall could put some of this stuff in, particularly a color replacement one-liner.

.replaceColor({255,255,255}, {255,255,0});

That seems cool right? [import]uid: 32936 topic_id: 894 reply_id: 23293[/import]

Well, this thread seems to be one of the most active in the Feature Requests forum, both in reads and replies.

I guess that means something!
[import]uid: 37667 topic_id: 894 reply_id: 23337[/import]

bump [import]uid: 32936 topic_id: 894 reply_id: 23847[/import]

+1
at lease minimum pixels (colors changing, saving results to file…) will be great to have [import]uid: 40521 topic_id: 894 reply_id: 24631[/import]

+1
at lease minimum pixels (colors changing, saving results to file…) will be great to have [import]uid: 40521 topic_id: 894 reply_id: 24632[/import]

+1
at lease minimum pixels (colors changing, saving results to file…) will be great to have [import]uid: 40521 topic_id: 894 reply_id: 24633[/import]

+1 as well.

I’ve been researching some game frameworks lately and Corona is incredibly crippled due to lack of such basic functionality like:

* bitmap manipulation
* no multitasking support whatsoever
* inability to add any external native code

With some EDK support like it is done in AirPlay 4.4 or at least native code-generation moved to local computer (like in Titanium), we could implement everything else what is missing (push notifications, game center, airprint, airplay, well, almost every iOS feature).
With ease of Lua and great marketing, Corona has a chance to become one of the best game frameworks out there. Right now, developers I know are mostly torn between Titanium for apps (because Corona lacks native UI controls), AirPlay for games (because Corona lacks EDK, bitmap manipulation etc) and Corona for ONLY simple, low budget games.

How about instead of just reworking price models, you just give some power to the people to extend your framework? [import]uid: 13563 topic_id: 894 reply_id: 24640[/import]

I agree with Vith on the EDK, but let’s not pollute this thread with that discussion. I’ve started a new thread on that topic here: http://developer.anscamobile.com/forum/2011/02/23/native-code-extensions-breaking-out-corona-sandbox [import]uid: 6795 topic_id: 894 reply_id: 24648[/import]

@vith : need my crutches. my wheelchair and need my “handicap” sticker for my car…
Surely I jest.

http://www.youtube.com/watch?v=UwZF_NO8se0
and
http://www.youtube.com/watch?v=9oiH9lp68YU
and with your own chrome
http://www.youtube.com/watch?v=Mmm3wYh5lYA
Everyone else beats us when it comes to UI. We just make simple thing simpler. Hard to believe.

:wink:
C. [import]uid: 24 topic_id: 894 reply_id: 24833[/import]

@carlos

I’ve seen it, looks great and is of course one of most needed features as well. Is it in daily builds? Or when is it planned to be released?

But some image transformation is needed as well.
Possibly blending layers solution (colorize, saturate, maybe some other types) would work great here.

When this comes + multi tasking + push notifications + possibly open EDK I would stay a life-long subscriber :wink: [import]uid: 13563 topic_id: 894 reply_id: 24876[/import]

@Carlos,

I too need to perform basic image processing, to inspect images at a pixel level, this type of functionality would be greatly appreciated and used if available. Please consider releasing the photoshop API or some facsimile.

Thanks [import]uid: 5963 topic_id: 894 reply_id: 25772[/import]

As a first step, a getPixel and setPixel similar to the BitmapData class in Flash would be ok for me [import]uid: 9158 topic_id: 894 reply_id: 25818[/import]

@Carlos,

Thanks for peeking in on this thread.

I believe some more flexible (bug free) display object/file manipulation features related to display.save (http://developer.anscamobile.com/reference/index/displaysave) would be a great start.

I believe the issues I am having are more likely related to bug/[case #928]: problem capturing the entire object on iPad and iPhone4 devices when Dynamic Scaling (in config.lua) is enabled.

Best wishes,

Paul Allan Harrington
http://www.pahgroup.com [import]uid: 14336 topic_id: 894 reply_id: 34198[/import]

I think bug/[case #928] has been fixed.

c. [import]uid: 24 topic_id: 894 reply_id: 34199[/import]

Carlos, again thanks for staying in touch with all of these threads. And also thanks for all the efforts you are making to improve the Corona SDK. I also appreciate the commitment to increasing the availability of helpful information via new additions to the Corona team such as Jonathon Beebe.

With that said, Case #928, if it has been resolved, the information should be reflected in the current API Reference (http://developer.anscamobile.com/node/2469) with additional information such as which build accomplished the fix.

I know you are working hard to improve the product and I hope we can find more efficient ways to keep the documentation current and easily accessible.

I would love to see a blog posting of your thoughts as to how you envision the Corona community could best maintain a more current and accurate Corona “Wiki”.

Again, thanks for keeping in close contact with the Corona user base.

Side Note: I’ll work through the issue I thought was related to case #928 and post my results as soon as I can accomplish it.

Sincerely,

Paul Allan Harrington
http://www.pahgroup.com [import]uid: 14336 topic_id: 894 reply_id: 34210[/import]

I too am in great need of access to pixel data. Sometimes being able to read pixel data can be invaluable to make interesting apps. I discovered Corona this week and was working on two apps using pixel data in JavaScript before. I love Corona so far, but I am currently struggling to find a way to use pixel data to port my apps (which are really fast with the pixel data calculations, but just too slow with animations). The only workaround so far is storing info in files and read that. However, it takes up loads of memory and is incredibly slow.

I would love you so, SO much if you’d release if even the simplest of image data/manipulation APIs. The sooner the better. :slight_smile:

Thanks for creating such a great product!
~Wouter [import]uid: 59370 topic_id: 894 reply_id: 36635[/import]

We too, would really benefit from image manipulation. Particularly image cropping and resizing for an app we’re looking to do.

Have there been any advancements in this area? I see “Improvements to image saving API” in the high priority section on the road map and was hoping it had been worked on recently. Thanks for any info you can offer us. [import]uid: 39480 topic_id: 894 reply_id: 37193[/import]

+1, bump etc. One of my app ideas would need this. [import]uid: 8496 topic_id: 894 reply_id: 38436[/import]

+1, had a project idea that I scrapped because of this missing feature. [import]uid: 67614 topic_id: 894 reply_id: 40017[/import]

All i’d need is to be able to find a pixel’s luminosity. something like ‘getPixel’ would be perfect! [import]uid: 13522 topic_id: 894 reply_id: 40249[/import]