C++ WinCE6 Draw text .NET 2.0
As first stage in larger project want someone to write a fast Windows CE application to run on CE6 .NET 2.0. I presume the language will be C++ as it needs to be as fast as possible so not managed code. 1. Create new project. 2. Add class TextItem - Contains variables Font name, size, x,y, Rectangle (will be the area when printed), Text (array of unicode strings ), number of lines,Rotation, InverseVideo (white on black or black on white text), Interline spacing, bold, italic, underline,clipped,alignment. Each should have set and get methods also default values. 3. Add class Label - Contains variables width,height,bitmap, dots per mm (all dimensions are in mm, so this dpm value affects how they are drawn, if at 12 dots per mm then a 5 mm line would draw at 60 pixels). The bitmap is black and white ( 1bit per pixel) , Contains methods CreateLabel(Width,Height) - Create blank label LocateStartandEndOfLabel(Top,Bottom) - Find fast the first and last lines in label that have black pixels. FindLeftRight(Left,Right) - Find the left and right columns that have black pixels. BlackPixelsInLabel() - returns number of black pixels in label. SavePreview(FileName) - Save a label to bitmap file. 4. Library Text - Contains methods for drawing text onto label. DrawText (Label,TextItem) - Draws the Text item to label taking into account all of the text items variables. So if rotated then rotate it (0,90,270,360 Only). If the text goes off the label it should be clipped ( set flag clipped in textitem). 5. Add Class ShapeItem - Contains variables X,Y,Width,Height,Type (Can be rectangle,rounded rectangle, circle/ellipse, line(horizontal/vertical),linethickness (for empty shapes), solid ( filled shapes), 6. Add Class Shaoe - Contains methods to Draw(ShapeItem,Label). All functions to start with comments and contain comments, I will give an example later. Variables to be named in english e.g MaximumPower not MP. Demo should create a label then add various text items and shape items before Saving sample previews. Project does not need a windows/visual front end.
| Expired |
Stephane Champagne
Virtual Assistant
View profile
Elina Jenkins
Graphic Designer
View profile
Kenneth Wright
Graphic Designer
View profile
Evelyn Guy
Legal Consultant
View profile
Related projects
Search for freelance jobscan’t wait for more clients
and advertising. Thank you."