Re: Vector images on Cocoa

2009-11-19 Thread Scott Thompson
> I would need some way of loading vectorized images from files and drawing > them to my custom NSView derived class, scaled up or down according to the > frame of the control. I was thinking of using SVG files but there seems not > to be any easy way of handling them in Cocoa and I feel that im

Re: Vector images on Cocoa

2009-11-19 Thread anderson oliveira
Try pdf files.:) Anderson www.anderson-oliveira.com On Nov 17, 2009, at 1:47 AM, Henri Häkkinen wrote: Hello. I would need some way of loading vectorized images from files and drawing them to my custom NSView derived class, scaled up or down according to the frame of the control. I was t

Re: Vector images on Cocoa

2009-11-17 Thread Gideon King
WebKit has experimental SVG support (http://webkit.org/projects/svg/index.html), but I haven't tried it. I have been successfully using PDF vector images, which are pretty much the recommended standard format. We have also used EPS images, but found that occasionally people have crasher bugs

Re: Vector images on Cocoa

2009-11-17 Thread Jens Alfke
PDF is the standard vector format. NSImage supports loading and drawing it. --Jens {via iPhone} On Nov 17, 2009, at 1:47 AM, Henri Häkkinen wrote: Hello. I would need some way of loading vectorized images from files and drawing them to my custom NSView derived class, scaled up or d

Vector images on Cocoa

2009-11-17 Thread Henri Häkkinen
Hello. I would need some way of loading vectorized images from files and drawing them to my custom NSView derived class, scaled up or down according to the frame of the control. I was thinking of using SVG files but there seems not to be any easy way of handling them in Cocoa and I feel that im