vector-graphics

Creating FXG for flex

I need to create flash content dynamically- towards that need to build images. I need help on two points a) are vector graphics always better than raster graphics on size/ do vector graphics take longer to render b) do we have open-source tools to create fxg files to import into flex builder rg ...

How to store and display vector text+graphics images in Android without Flash?

What vector graphic formats can be used to display the in a view in an android application? As I understand, PDF is not an option at the moment, so what other options are there for storage and display of complex text+graphics? Unfortunately, I cannot use embedded browser with Flash because I need this app to work on Android versions bef...

Open source .Net vector graphics editor

Does anyone know of any open source vector editors written in a .Net language? I know Inkscape is very popular, but it is written in c++. The only .Net one I know of is XDraw, but would like something more active or with more features. Thanks. ...

What Library Can I Use to Manipulate SVG Files?

I'm searching for a library that will allow me to perform graphical manipulations on SVG files. By "manipulations" I mean things like: Merge two overlapping shapes into a single shape Find the geometric center of a shape Draw a copy of a shape that is 25% of the original shape's size ...and other sorts of things that one can do in I...

Transforming verticies with center point and scale factor?

My application is a vector drawing application. It works with OpenGL. I will be modifying it to instead use the Cairo 2D graphics library. The issue is with zooming. With openGL camera and scale factor sort of work like this: float scalediv = Current_Scene().camera.ScaleFactor / 2.0f; float cameraX = GetCameraX(); float cameraY = Get...

SVG: how to position bounding box of rotated text

I have to build a SVG image containing some rotated text elements. I want to achieve the following: Each text element shall be rotated around its center point by a degree. The resulting (imaginary) bounding box of the rotated text shall be translated, so that it's upper left is at position x,y. We don't know the content, i.e., the widt...

Looking for a web based vector graphics editor

Here are my criterias: I'd prefer something with a configurable, polished and preferaby embeddable user interface. Black and white editing (black lines on white canvas) is fine for my purposes. Cross-browser compatibility would be nice. I would rather not use Flash. Text editing is a must (changing font type and size). I'm not look...

How to use RaphaelJS to draw an existing vector image

I am starting to learn RaphaelJS, but it does seem to be a steep learning curve as I am not very versed in javascript. But it seems like such a good library that I am willing to put the time in to learning it. What I would like to know is: How can one use an existing vector image in RaphaelJS (If I download a "vector" image can I tel...

Graphics - overlapping bug or what?

Hey, I have quite a big code here... But fortunately it is not needed to be mentioned at all. It comes down to something which... fails? So, in the end this is supposed to draw two triangles (using AS3 Graphics). It works fine with one, but when I put a second there, it looks weird. I trace debugged it, and I think the bug is in the Gra...

Is there any simple format for visualising quad trees?

I have some data with presence/absence on big grid, internally represented as quad tree. Are there any convenient formats for showing that to users? Neither huge number of rectangles with svg nor huge number of pixels with png feel right. ...

Good format for vector graphics for generation in java and use/open/print in windows?

We have a java web application. The application generates a big image with company structure diagramm on it as jpeg. Users download the image and want to print it on DIN A2 (big paper format). The jpeg in this scale has pretty bad quality after printing. Our idea is to generate an image in vector graphics. What vector graphics format su...

Disconnecting a Raphael element event

I attach an onmouseout event to a Raphael circle element like this: (function(el,iElPos,col){ el.mouseout(function elmouseout(){el.animate({"fill":col,"r":ELEMENT_RADIUS},150); alert("first"); fadeTag(); }); )(c,i,e...

Create or manipulate EPS files using .NET

I have to create thousands of individual EPS (Encapsulated PostScript) files. These files will be printed by a company that uses a Roland printer and software. The printer software only accepts eps files. So this is the procedure I've implemented using a custom vector graphics library: Create an individual bitmap (this works) Draw a r...

Manipulate the shape of each character in a string using Java graphics

Hi I've figured out how to get the shape of a text string before drawing it on this screen in Java, for example by using the TextLayout class [1]. However I could only find a way to get the Shape of the whole text. I need a Shape for each character in the text. Does anybody know an elegant way of how to obtain the Shape per character? ...

Is it possible to export a MovieClip or Graphics object to a vectorial format?

I want to export some vectorial drawings to a vectorial format (eps, svg,...) from a Flash application. Everything is vectorial in my application so it should be possible to do it, but I can't find a solution... Is it possible? How? ...

Vector graphics in Android

I'm working on an application that displays someone else's database of images. The images they have are all vector graphics and can be converted to any format, however keeping them in a vector format is good because users will probably want to zoom in closely. The question is, is there a built-in way to display a vector graphic in Andr...

Why is the scalability of the UI important in WPF?

While I love developing user interfaces in WPF and XAML, I've tried to embrace the scalability aspect by also creating my icons as vector images... but it's really hard! I very rarely get the same kind of crispness that I can with raster graphics and it almost always takes me longer to produce the icons. Am I wasting my time? Is there n...

aliasing problem

hello, the code below draws two vertical lines on a canvas. these lines appear to be of different thickness on the screen although they are the same in code. i am tying to find a way to make them look as sharp as the border around the canvas. setting Path.SnapsToDevicePixels does not have any effect. The code is a contrived example, and...

2D Vector graphic renderer for OpenGL

Hi, I want to use Vector graphics in an OpenGL game. I want to use vector graphics because they can be scaled cheaply without loss of quality. Of course, the drawing should be hardware accelerated, so I do not want to draw in software to a texture. Now I am wondering if a library doing this already exists. Is there a library, that can...