-
RotateFlip()
Hi
I get the following exception when I try to RotateFlip(RotateFlipType.Rotate180FlipX) my System.Drawing.Imaging.Metafile
Code:
An unhandled exception of type 'System.NotImplementedException' occurred in system.drawing.dll
Additional information: Not implemented.
this is the code
Code:
Dim pic As New System.Drawing.Bitmap(500, 500, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
Dim gr As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(pic)
Dim hDC As IntPtr = gr.GetHdc()
Dim m As System.Drawing.Imaging.Metafile = New System.Drawing.Imaging.Metafile(strPicName & "." & strPicFormat, hDC)
gr.DrawLine(Pens.Blue, 10, 10, 100, 100)
m.RotateFlip(RotateFlipType.Rotate180FlipX)
If it's not implemented... why the #&ยค% is it in the framework?!?
it works fine to rotate the System.Drawing.Bitmap?
does anyone have a solution to this?
-
if you are looking for a way to rotate a picture look at this thread
http://www.vbforums.com/showthread.p...readid=223859&
-
thanks lunatic but I really need to flip it as well...
again it works with Bitmap but not with Metafile
-
Here is a example I made that is on my website. Just change the flip/rotate type to whatever you want to do.
The download link
-
as a note, their is alot that does not work like it should in System.Drawing. MS doesnt seem to keen on fixing it either. :mad: