Changes

Jump to: navigation, search

Teams Winter 2011/team4/project

586 bytes added, 19:06, 10 April 2011
Drawing Application
[[File:T4_1.png]]
*Set the title of the project
[[File:T4_3T4p1.png]]
===Add Elements on Main Screen===
*Place a applications icon into ''res->image''
*Open ''BlackBerry_App_Descriptor''
*Select the icon, click the ''Add'' button
[[File:T4_2T4p2.png]]
===Define the Application===
*Create a class called Menu. This will provide the user with an interface to navigate between screens.
}
</pre>
*Drawing was done in an odd way. The simplest solution we came up with, was to use a square bitmap and recolor its background if any different colors were chosen, and resize resized accordingly. This worked well for the most part, tho we do run into some performance issues if there are too many bitmaps on the screen at once<pre>private void drawsy(BitmapField bmf, int x, int y){ if(alphaSwitch) bmf.setBackground(BackgroundFactory.createSolidTransparentBackground(currentColour == 0 ? Color.GREEN : currentColour, 50)); else bmf.setBackground(grid.getFieldAtIndex(0).getBackground()); screen.add(bmf, x-(bmf.getBitmapWidth()/2), y-(bmf.getBitmapHeight()/2));}</pre>
*The program works with both touch events and scroll wheel events, tho scroll wheel events are still buggy.
*Our program, dubbed Drawsy, allows the user to create works of art on most blackberrys (Above version 5.0.0)
*First select start to begin drawing
[[File:bbprj1.png]]
*You are then provided with a blank canvas and some options to work with
[[File:bbprj2.png]]
*You can change the color of your brush
[[File:bbprj3.png]]
*You can change the size of a brush
[[File:bbprj4.png]]
*You can clear the screen
[[File:bbprj5.png]]
*You can switch between a marker and a paintbrush to achieve translucent colors.
[[File:bbprj6.png]]
*This being said, our program provides the user with an open ended experience which is only limited by their imagination
[[File:bbprj7.png]]
*Enjoy!
 
===Demonstration Video===
http://www.youtube.com/watch?v=YH7tTBwM1fE

Navigation menu