Language confusion. Help please
I have a masters project upcoming and I have to create a basic app within 3 months. The topic was to create for android, however I changed it to blackberry 10 as I wanna develop for it.
I recently went through the developers website and I see alot of options to go with! And I am confused what way to go, so some suggestions or help would be of great help.
The functionality of the app is very simple, the user must be able to select a photo or click one and then paint an area which they could blur out to blur the background like. Maybe using a slider. So can someone suggest a language which would be easier and better to achieve this functionality?
- 03-30-13, 02:46 PM #4
This would be comparatively easy to do with HTML5 Canvas (WebWorks) and perhaps hammer.js to detect the click location.
How much help are you allowed to have (buy? ) for this project?
TBH I think I have about 70% of the code you'd want to use written (including saving the modified image thanks to Erik Oros' CanvasToBlob Github sample) if I Frankenstein it from some of my other apps.
- 03-31-13, 06:00 PM #7
Second, you'll want this information on Canvas: HTML canvas drawImage() Method (hint: check the try it yourself editor, duplicate the ctx.drawImage(img,10,10); line, and modify the coordinates (those will be variables later)).
Next, you'll want to check out hammer.js. There's a sample at Hammer.js. It can get you the location of a touch, which is what I would use to insert a face blur.
Once you have all that down, for saving you'll want to check out https://github.com/blackberry/BB10-W...asToFilesystem.
Since you're a masters student, I'm confident those resources will be enough to get you going.
- 06-19-13, 04:03 AM #10
I'll post tomorrow some BlackBerry specific code that will let you use the native file browser to import an image into a canvas element if you're up to finding the code to blur faces out where you touch them.
- 06-19-13, 12:52 PM #12
http://developer.blackberry.com can help with that if you need it.
Load Image to Canvas - Pastebin.com
You'll then want to use something like this to add the blur: HTML5 Canvas Mouse Coordinates Tutorial
- By bricegoing in forum BlackBerry Tour 9630Replies: 11Last Post: 08-18-09, 02:44 AM
- By thegame69 in forum Storm OS DiscussionReplies: 2Last Post: 05-31-09, 11:04 PM
- By 0ndbv32 in forum BlackBerry Bold 9000Replies: 5Last Post: 03-07-09, 09:29 PM
- By Stang68 in forum BlackBerry Curve 83xxReplies: 3Last Post: 12-13-08, 11:37 PM
- By Chuthay in forum General BlackBerry DiscussionReplies: 2Last Post: 11-21-07, 10:28 PM