|
Prev: "Generic deployment failure (Devices)"
Next: Missing Version Information in VB.Net 2008 Smart Device EXE
From: Sagaert Johan on 3 Jul 2008 09:56 hi How do i draw a rotated image ? In the full NET FW i used transforms before but in CF i can't. How do i draw my image rotated (0,90,270) on CF ? Thanks Johan
From: Arun on 3 Jul 2008 11:03 http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/5b351df3c40ecf1b/ba31f115b77c86a7?lnk=gst&q=image+rotate+arun#ba31f115b77c86a7 Hope this helps, Cheers, Arun On Jul 3, 6:56 am, "Sagaert Johan" <REMOVEsagaer...(a)hotmail.com> wrote: > hi > > How do i draw a rotated image ? > In the full NET FW i used transforms before but in CF i can't. > > How do i draw my image rotated (0,90,270) on CF ? > > Thanks > Johan
From: mind_the_gap on 4 Jul 2008 04:39
Hi Johan, you need to do the rotation by yourself - pixel by pixel. If you only need to rotate in 90 degree steps it would be no problem. You only need to access the image data quick - for this a real good class written by Roshan Khan (http://blogs.msdn.com/windowsmobile/archive/ 2008/04/15/faster-c.aspx). The discussion following on this is also pretty interesting and gives some hints for doing some operations faster. Everything else is simple sinus and cosinus mathematics - with which you determine the new positon of each pixel. If you are interested in a generic solution (e.g. every rotation) using the FastBitmap, drop a line and I will post it. For 90 degree step rotation you will find many examples on the net. Regards, Tom |