Solved

Loading vector graphics Compact Framework

Posted on 2011-02-25
4
367 Views
Last Modified: 2013-12-27
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?.

0
Comment
Question by:Pirie
4 Comments
 
LVL 2

Accepted Solution

by:
Raymond-Holmboe earned 250 total points
ID: 34991258
vector graphics are not supported by the compact framework. Maybe QT has it, but it's C++.
0
 

Author Comment

by:Pirie
ID: 34994695
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
 
LVL 16

Expert Comment

by:hjgode
ID: 39626908
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question