Loading vector graphics Compact Framework

Using the Compact Framework in VB.NET 2005, I want to use a big WMF vector graphic (1500 * 1300 pixels) to draw rectangles on. Currently I open the graphic into a picturebox. The technique I use, however, does that the WMF is always converted to a Bitmap and then displayed in the picturebox. It is no longer a vector graphic but just a bitmap. This takes a lot of memory in use.

My coding:
      Dim MyImage As System.Drawing.Bitmap
      MyImage = New Bitmap(….filename…..)
      g2 = Graphics.FromImage(MyImage)
      picturebox1.Image = CType(MyImage, Image)

How do I load it as a WMF vector graphic and use it as a vector graphic? Is there perhaps an alternative for the PictureBox in VB.NET in Compact Framework?.

PirieAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Raymond-HolmboeConnect With a Mentor Commented:
vector graphics are not supported by the compact framework. Maybe QT has it, but it's C++.
0
 
PirieAuthor Commented:
OK, thanks.
So if I use a graphic / PictureBox under the Compact Framework, it will always be converted to a bitmap? Is there another way to prevent this?
0
 
hjgodeCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.