• 0

Looking for a vector component (OCX)


Question

6 answers to this question

Recommended Posts

  • 0

Maybe, just maybe, you can create your own. :)

I tried to not be dependant on non-standard controls when I was playing with VB6. I wrote my own, which resulted in more coding for me but less unused code. The final product was lighter.

Link to comment
Share on other sites

  • 0

I don't see why you need an ocx, which is mostly used for components that interface with the user (GUI), I think you mean a normal COM dll ;). Anyway, a vector library is very easy to implement yourself, most vector libraries are part of much bigger libraries and including them would probably be overkill. The 4 or 5 most used vector operations are like 10 lines to program. Anyway, if it's speed you are looking for it's better to make your own library in C/C++, compile to dll (normal one) and call it from vb. If that is too advanced for you, just program it in vb, but it will be slower.

If you really want to use a fast library and not afraid of all the overhead that comes with it you could use the math library of directx, which has a COM interface.

Link to comment
Share on other sites

  • 0

First of all thank you all for the replies! :)

Creating a vector control by ourselfs it would be really time consuming. We will have to do advanced operations like object snapping, zooming in/out, etc -- it's not just about drawing some lines.. Unfortunately our time frame doesn't allow that. I'm currently trying Avax Vector ActiveX (link)... Does anybody have used it?

Link to comment
Share on other sites

  • 0

The normal picturebox control already supports vector drawing via WMF (and GDI), it just sucks at it (Because it's GDI and Visual Basic). If you want high quality drawing you'd want to use GDI+ or something like Cairo/Skia.

GDI+ will be your best bet honestly, although you'll still have to do a bunch of work yourself.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.