473,513 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# and vector image files

Ive seen on the web third party componets such as custom buttons and
guages and dashboard graphics in controls that graphicaly look realy
good.

I was wonderinghow they do thos great looking controls.

I know its possible to produce custom controls with GDI+ to draw the
gpahics, but it would seem almost impossible to draw some of the realy
complex controls ive seen.

I was wondering if c# supports any vector file formats. Can you create
a custom control using a vector file embeded into the control for
different states of the controls. Or is there a way to take a vector
file and auto generate the GDI code to reproduce it in windows form.

Im wanting to use vector files becasue it should mean the control can
be resized at will without pixelisation.

Does anyone have any thoughts ?
thanks

Peted
Nov 1 '07 #1
5 8797
Perhaps look at WPF (part of .NET 3.0) instead - this allows most of
what you are talking about, while still dealing in managed code.

Marc

Nov 1 '07 #2
And possibly combine the two ideas: http://www.wpf-graphics.com/ViewerSvg.aspx
(I haven't used it - not a recommendation, but looks interesting)

Nov 1 '07 #3
Hi,
--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
<Petedwrote in message news:ep********************************@4ax.com...
Ive seen on the web third party componets such as custom buttons and
guages and dashboard graphics in controls that graphicaly look realy
good.

I was wonderinghow they do thos great looking controls.
A lot of work and years of expertise. :-)

Im wanting to use vector files becasue it should mean the control can
be resized at will without pixelisation.

Does anyone have any thoughts ?
you can master using GDI+, take a look at Bob Powell's website/book. It
takes a lot of work though. The easiest solution is to simply stick with a
good third party lib and use it :)
Nov 1 '07 #4
Silverlight handles vectors.

<Petedwrote in message news:ep********************************@4ax.com...
Ive seen on the web third party componets such as custom buttons and
guages and dashboard graphics in controls that graphicaly look realy
good.

I was wonderinghow they do thos great looking controls.

I know its possible to produce custom controls with GDI+ to draw the
gpahics, but it would seem almost impossible to draw some of the realy
complex controls ive seen.

I was wondering if c# supports any vector file formats. Can you create
a custom control using a vector file embeded into the control for
different states of the controls. Or is there a way to take a vector
file and auto generate the GDI code to reproduce it in windows form.

Im wanting to use vector files becasue it should mean the control can
be resized at will without pixelisation.

Does anyone have any thoughts ?
thanks

Peted

Nov 1 '07 #5
On 2007-11-01 06:31:57 -0700, Peted said:
[...]
I was wondering if c# supports any vector file formats. Can you create
a custom control using a vector file embeded into the control for
different states of the controls. Or is there a way to take a vector
file and auto generate the GDI code to reproduce it in windows form.
C# supports the original Windows vector file format: Windows Metafile.
It has a Metafile class, derived from Image.

The newer technologies may be preferable if you can use them, but you
should be able to use a Metafile for the purpose you've described if
you have to. Of course, you can't just replace the rendition of any
random control with a metafile representation; it has to be a control
that already allows that, via setting of an Image property. That's
where the newer technologies may be more useful.

But it can be done and if you're writing a custom control from scratch,
it should be very easy (since you're writing the code to do all the
rendering anyway).

Pete

Nov 1 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12822
by: shanergb | last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL & Apache on a Windows platform. What I need to do is create images on the fly with either GD or ImageMagick, display them on the...
1
5899
by: Alan Benn | last post by:
(VC6) When I use the STL <vector> template as follows: #include <vector> .... vector<CString> m_nameList; // Names of the chips I get these compiler warnings : C:\Program...
27
5899
by: Jason Heyes | last post by:
To my understanding, std::vector does not use reference counting to avoid the overhead of copying and initialisation. Where can I get a reference counted implementation of std::vector? Thanks.
8
1361
by: Daniel L Elliott | last post by:
Hello, I am feeling very confused right now. The following code gives me an error: X.h: template <typename T> ILuint startImage(vector<vector<T> > imageData); X.cpp:
11
2719
by: koperenkogel | last post by:
Dear cpp-ians, I am working with a vector of structures. vector <meta_segment> meta_segm (2421500); and the structure look like: struct meta_segment { float id; float num;
12
6839
by: Marcelo | last post by:
Hello, I would like to know how to use the std::vector variable. I have tried a class something like this, but I get an error and I don't know why... the error lib/image.h:13: error:...
3
5841
by: eriwik | last post by:
I use the following structure to store filenames for one or more "sets" grouped together by a number: map<int, map<string> > fileSets; As arguments to the constructor I send a...
8
4159
by: markww | last post by:
Hi, If I have a vector of structs like this: struct IMAGE { unsigned char *pPix; string strName; int nNumber; };
2
2803
by: dwyer.bill | last post by:
Hi, I am trying to create a control that will display a vector image. The main purpose is to allow for the resizing of an image without pixelation. All of our image files are in AI(Adobe...
0
7166
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7543
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.