Let us first try to understand why rotating a text/bitmap is difficult to achieve on a Pocket PC 2003/Win CE 4.2 device.
The Compact Framework supports only a subset of the graphical output features of the Desktop Framework. You can do all of the more commonly required text drawing operations such as selecting different fonts by name, in different sizes and styles, and also control the color of drawn text.But this is a small price to pay for the small memory footprint occupied by the Compact Framework.
The System.Drawing.Graphics namespace is commonly used for almost any forms in the desktop framework, hence it has got lots of facilities to draw any kind of image on to the device context. However this namespace in the smaller version of the framework or the compact framework as It is commonly called is having only a very few classes/functionalities.
However there are means to overcome these short comings by making use of the win32 functions readily available/provided to the compact world.
Let me take a real world solution and give you an insight into it.
Problem at hand:
A Route sales Representative of Company A carries out a order/ sales for one of his prominent client (say for Wal-Mart) and after delivering the goods to his client he comes with his Pocket PC to take a signature from him for the delivery made.

Diagram 1: Signature Capture
Well This paper doesn't talk about how do we capture the signature (I will give you a hint ...Capture the Mouse Down and Up events and store the points into an Points[].To serialize it/or make it persistent store these points into an xml file (To simplify the reading of these points) ...You may probably find this in my next article J
Let us come back to our main discussion .So how we achieve this. As I told you I want to demonstrate a real life example. We also know that the data that is being displayed in the device are all dynamic depending on the store number, the sales ticket number, date and the quantity of item ordered by the client.
Jason LamPosted Aug 9, 2007, 2:29 AM
where can we find the class FontCache? are you writing an implementation of your own library without distributing that library?
SylvainPosted Feb 7, 2006, 1:19 PM
where are the definition for Win32 DrawText, especialy your which does not fit any definition of DRAWTEXT. Your's uses 8 params FontCache.DrawText(hDC, hFont, arrControlNames[0].ToString(), arrControlNames[0].ToString().Length, ref r, Win32.DT_TOP, Color.Black, Color.White); Anybody else 5 params: [DllImport("User32.dll", CharSet=CharSet.Auto)] public static extern int DrawText( IntPtr hDC, // handle to DC string lpString, // text to draw int nCount, // text length ref RECT lpRect, // formatting dimensions uint uFormat // text-drawing options );