Donnerstag, Februar 4th, 2010 | by Daniel Siegl | Posted in Compact Framework | 1 Comment »
In the ongoing quest to create Compact Framework applications that look nice I recently found a good post on how to draw Rounded Rectangles with CF: How to draw a rounded rectangle in .NETCF
The author Christian Helle also has a Second post where the Rounded Rectangles get filled with a Texture
There is also ways without the GDI Functions but those are a little more complicated.
Mittwoch, September 23rd, 2009 | by Daniel Siegl | Posted in C#, Compact Framework, Controls, Windows Mobile | 5 Comments »
Montag, Dezember 15th, 2008 | by Daniel Siegl | Posted in Compact Framework, Windows Mobile | 2 Comments »
Auf allen Pocket Pc’s mit Windows Mobile 5 und 6 gibt es GDI+ wie schon in einem anderen Post von mir erwähnt. Die Standard Controls im Compact Framework sind ja eher Grau in Grau – Abhilfe kann da nicht schaden.
In letzter Zeit gibt es jetzt auch wieder mehrere Leute die zu diesem interessanten Themengebiet posten:
Natürlich hat das alles nicht unbedingt einen positiven Effekt auf die Performance – aber coole Applikationen bringen mehr Geld
Dienstag, Dezember 9th, 2008 | by Daniel Siegl | Posted in Compact Framework, Windows Mobile | No Comments »
Vor einem Jahr habe ich micht mit Direct3D am Windows Mobile gespielt – war aber sehr frustriert da es von so gut wie keiner Hardware unterstützt wurde. So wie es scheint wird OpenGL ES der neue Standard auf Windows Mobile. Bis jetzt gabs da nur eine “native” API – da man aber UI’s am besten managed schreibt habe ich mich auf die Suche gemacht. Dabei habe ich einen ersten wrapper für Compact Framework gefunden, dazu alles weitere am Blog von Koush. – Freue mich schon auf eine Zeit wo ich damit experimentieren kann.
Freitag, November 21st, 2008 | by Daniel Siegl | Posted in Compact Framework, Windows Mobile | 5 Comments »
EDIT: see also Silvermoon – englisch post.
Es gibt einen super Post von Alex Feinmann (Opennet.cf) für einen GDI+ Wrapper am CompactFramework.
Unterstützt wird dabei nur Windows Mobile Professional – darum wird vermutlich auch von MS nichts derartiges geliefert.
Leider unterstützt diese Implementierung keine Rechtecke mit abgerundeten Ecken. Dazu habe ich aber etwas auf CodeProject von Arun Reginald gefunden.
Dann habe ich 3 kleine Methoden in die GraphicsPlus Klasse von Alex integriert – und angepasst und schon kann ich abegerundete Rechtecke am Windows Mobile zeichnen.
public GraphicsPath GetRoundedRectanglePath(float x, float y, float width, float height, float radius)
{
GpRectF rectangle = new GpRectF(x, y, width, height);
return GetRoundedRect(rectangle, radius);
}
public void DrawRoundRectangle(PenPlus pen,float x, float y,float width, float height, float radius)
{
GraphicsPath path = GetRoundedRectanglePath(x, y, width, height, radius);
DrawPath(pen, path);
}