If you look at the FunHouse sample code (/Developer/Examples/Quartz/
Core Image/FunHouse), you can see an example how one can archive a
XML description of a Core Image rendering with the filters. This is
not a SVG but feel free to wrap your SVG exporter around it.
Frank
On Jun 21, 2005, at 9:59 AM, Ken Tabb wrote:
Hey folks,
I checked the archives for the list to see if this had been asked
before, but couldn't spot anything obvious (or even semi-obvious).
I am working on an app that I'd like to use Core Image in. I'd also
ideally like to be able to export as SVG (scalable vector graphics)
if possible, in addition to the native file format.
Looking at the SVG format specification, there are a lot of
situations where an Image Unit's parameters could be expressed in
the XML of an SVG document (eg. gradient fills). However, from my
initial reading of the SVG format, it seems like I'd have to do a
walk through each object's Image Units, and if it's one that is
expressible in XML, do that, and if it can't be expressed in XML -
either because the format doesn't cover that type of effect, or
because I don't know what the Image Unit does (eg. 3rd party Image
Units installed by end users, rather than Apple's default Image
Units or my Image Units) - then export a bitmap render for the
object, with rendered Core Image output... which of course is
neither scalable or vector based, but aside from that, would be
very suitable for inclusion in an SVG document!!
Furthermore if (for example) object 3 in my document has 10 image
units, and the 6th image unit to be applied has an effect that
can't be expressed as SVG XML, then I'd effectively have to output
steps 1-6 inclusive as the bitmap, in which case only steps 7-10
would be 'editable' by the user in another SVG app (as the first 6
would be hardwired into the bitmap). Not to mention file sizes etc.
which would presumably grow exponentially per the number of objects
that have to be output as bitmaps.
Has anyone done any work with Core Image <-> SVG... is there a cult
community in existence who I have yet to tap into? I understand
that Core Image is basically bitmap based, and SVG is basically
vector based, but there are definitely some cross overs where the
two could talk.
Please tell me if I'm barking up the wrong tree here... thanks in
advance for any feeders,
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer
Science
University of Hertfordshire, UK http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden