Solved

Loading vector graphics Compact Framework

Posted on 2011-02-25
4
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

626 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