|
-
Apr 23rd, 2003, 04:03 AM
#1
Thread Starter
Junior Member
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?
-
Apr 23rd, 2003, 04:11 AM
#2
Frenzied Member
if you are looking for a way to rotate a picture look at this thread
http://www.vbforums.com/showthread.p...readid=223859&
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 23rd, 2003, 04:24 AM
#3
Thread Starter
Junior Member
thanks lunatic but I really need to flip it as well...
again it works with Bitmap but not with Metafile
-
Apr 24th, 2003, 01:41 PM
#4
Lively Member
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
-
Apr 24th, 2003, 03:12 PM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|