Pirie
asked on
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?.
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?.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER
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?