svg

Programmatic graphics toolchain

I have drawn an icon in Inkscape, but would now like to programmatically alter it (change the colours slightly for different icon states) and convert it to a tiled PNG format file containing multiple icons with different colours. I know about Inkscape's --export-png options, but can't see a way to make it change the image and/or export m...

.NET WebBrowser control with Adobe SVG Viewer

I'm having problems with SVG files loading in a .NET 2.0 WebBrowser control. If I create a new WinForms application project, drag a WebBrowser control and a button onto the Form1.cs design surface, and add a line to the button's on-click handler to set the Url property of the WebBrowser control to an SVG file, I get two IE script errors...

Netbeans J2ME SVG Compliance

Hello guys, I coded some svg images for a project i'm working on. But when i try to put them on a screen(form) in the netbeans software (j2me), it says "the image is not SVG Tiny compliant". I've even tried testing with svg images from Sun's WTK demo's THAT WORK when deployed but it says the same thing. Any ideas on whats gone wrong? Tha...

How to get an outline effect on text in SVG?

I just want a simple SVG image that has some arbitrary text on an angle, which I can do. Thing is, I also want the text to have a sort of "outline" effect. Like rather than a solid D, the inside and outside edges of the letter D are drawn with a line of a specified thickness and the rest of the D isn't drawn at all, so as to look almos...

How to place the same path multiple times at different sizes/coordinates?

I have a path I've created in Illustrator and saved as an SVG. Now I want to programmatically place it at different sizes and coordinates on a large canvas. Say I've got this image: How would I reproduce that same image in different places and sizes in one SVG file, like this: for example, one version shrunk by 20% at coordinates...

Open Source Libraries for Rendering Vector Graphics Formats Through Java2D?

What are my options for rendering graphics encoded by Java2D to vector graphics formats such as EPS, SWF, SVG, VML, PDF and others I might not have heard of yet with open source libraries? Batik is the most widely-used library for rendering SVG. What other options are there? iText is widely used for rendering PDF. Is there something le...

Library for using SVG in Windows Forms / WPF?

Are there any libraries which Allow to draw svg direct to a Windows Forms application to a WPF application I draw graphics and design everything with Inkscape, because I love that program. Then I have those stunning svgs and have to either export them to png (WinForm) to use them or convert them to xaml-code (WPF) (Kaxaml helps me). ...

SVG Word Wrap - Show stopper?

Hi, For fun I am trying to see how far I can get at implementing an SVG browser client for a RIA I'm messing around with in my spare time. But have hit what appears to be a HUGE stumbling block. There is no word wrap!! Does anyone know of any work around (I'm thinking some kind of JavaScript or special tag I don't know)? If not I'm e...

Smallest Java SVG Engine

What is the smallest Java SVG engine (least/smallest jars) that actually works? If your answer is Batik, what is the minimal dep. graph for getting this to work in a simple Java application? I've looked at the dependency graph on the Batik site, but it looks like a typical Apache mess. Aren't there better alternatives? ...

SVG Positioning

Hi, I'm having a play with SVG and am having a few problems with positioning. I have a series of shapes which are contained in the "g" group tag. I was hoping to use it like a container, so I could set its x position and then all the elements in that group would also move. But that doesn't seem to be possible. 1) How do most people go ...

With javascript, can I change the Z index/layer of an svg "g" element?

Let's say I have a couple composite shapes ("g"). I want to be able to click and drag them, but I want the one I happen to be dragging at the moment to be on TOP of the other one in the Z order, so that if I drag it over the OTHER one, the other one should be eclipsed. ...

SVG Symbols : Adding new nodes to a use tag

Hi, Just playing the defs and use for the first time. What I would like to do is use defs to build a base template and then when I use it customise it by adding some more inner tags. Is this possible, as when I try to do it in Firefox it doesn't render any tags which I place as children to the use tag. e.g: <?xml version="1.0" standal...

Charting libraries in PHP output to SVG or Canvas?

I'm looking for a charting library written in PHP that outputs to SVG (or Canvas), possibly for integration into an ExtJS project. I like the look of http://pchart.sourceforge.net/index.php but it does bitmap output and is GPL licensed, which will probably be a show-stopper since the project is an internal commercial project. Any sugges...

How to draw a line between draggable and droppable?

Hi guys, I'm using the exelent JQuery UI to do a "mapping" so the user can "map" persons from one program to persons from other program. using this simple JQuery: $(document).ready(function() { $("div .draggable").draggable({ revert: 'valid', snap: false }); $("div .droppable").droppable({ hoverCla...

Estimate pixels of proportional font in SVG or Java

Is there an way to estimate the number of pixels used by a proportional font? I am writing software that creates an image in SVG and transform that to PNG in Java. In this image I am using a text with a proportional font (size 16). I can sometimes fit 26 characters in the picture and sometimes only 19. This is because 'WWW' takes much m...

How to inline SVG in CruiseControl.NET reports?

I am trying to embed inline SVG within custom CruiseControl.NET reports. Since this is for internal use only, I just need a solution compatible with the last version of Firefox. Actually inserting the SVG XML into a custom CruiseControl.NET report is OK. But, but I am struggling with the HTML vs XHTML interpretation of the file by Firef...

.NET PDF to SVG conversion Library

Hello there, does anyone know any good (as in native (not wrapping any external .exe etc), supported, documented and maintained) .Net library that allows me to transform single page .pdf files (1.4, non pdf/a) to .svg files? Google spits out a gazillion results, but none of them are really promising from a real-life experience perspect...

SVG vs CANVAS, where is the Web World going towards?

I need to pick one of two technologies (svg, canvas) for an ongoing project of mine. I would prefer to pick the technology that is more maintained and in active development rather then choose a technology marked for "putting down". Which of the two should I choose? Is there a good JS library built on top of them? ...

How to create gradient object with Raphael

Hi, I was trying to use Raphale JS graphics library. I would like to use the attribute gradient which should accept an object. Documentation says to refer to SVG specs. I found the gradient object in SVG, for instance <linearGradient id="myFillGrad" x1="0%" y1="100%" x2="100%" y2="0%"> <stop offset="5%" stop-color="red" /> <stop offset...

jQuery SVG vs. Raphael

I'm working on an interactive interface using SVG and Javascript/jQuery, and I'm trying to decide between Raphael and jQuery SVG. I'd like to know (1) what the trade-offs are between the two, and (2) where the development momentum seems to be. I don't need the VML/IE support in Raphael, or the plotting abilities of jQuery SVG. I'm prima...