Solved

Loading vector graphics Compact Framework

Posted on 2011-02-25
4
340 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
Comment Utility
vector graphics are not supported by the compact framework. Maybe QT has it, but it's C++.
0
 

Author Comment

by:Pirie
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now