Quartz 2D +EMF data

  • Hello list.  Does anyone know if there is a mechanism in Quartz 2D for
    importing EMF, WMF, or any other kind of vector data that can be
    exported out of Adobe Illustrator?  Windows' GDI+ can do this, so I
    would be surprised if Quartz is incapable of it.  I am working on a
    vector-based GUI, reconstructing the widget designs 'by hand' using
    basic quartz drawing features and paths.  I would much rather import a
    metafile, but can't see any way to do this.

    Thanks,
    Adam
  • On 10/10/2006, at 16:56, Adam Somers wrote:

    > Hello list.  Does anyone know if there is a mechanism in Quartz 2D for
    > importing EMF, WMF, or any other kind of vector data that can be
    > exported out of Adobe Illustrator?  Windows' GDI+ can do this, so I
    > would be surprised if Quartz is incapable of it.  I am working on a
    > vector-based GUI, reconstructing the widget designs 'by hand' using
    > basic quartz drawing features and paths.  I would much rather import a
    > metafile, but can't see any way to do this.

    What about PDF? There are a lot of routines for manipulating PDF data
    in Cocoa and Quartz.

    --
    Rob Keniger
  • Adam,

    As I know through my own experience, Quartz 2D is really build for
    drawing, for PDF content creation, and draw internally an interpreted
    PDF content stream. For drawing, there is no Shading drawing, but
    next system Leopard (10.5) have just add two Shading type 2 and 3
    (radial and axial).
    All its routines can write into a special graphic context called the
    CGPDFContext and then produce a PDF data that can be put into a PDF
    file.
    The CGPDF routines suite (CGPDFDocument, CGPDFPage, CGPDFDictionary,
    etc...) is designed to read PDF file / data content and gives you the
    possibility to interpret it.
    CGPDFScanner object gives you the tool to analyse and interpret the
    content stream (vector data) of any page of a PDF document.
    CGPSConverter gives you the possibility to come from Postscript (PS,
    EPS, EPSF) and go to PDF, or come from PDF and go to Postscript.

    So, an Illustrator file can be converted to a PDF file (or data) with
    CGPSConverter, and analysed with the CGPDF tools.
    But I have never seen anything in the system to do EMF or WMF
    interpretation...

    Hope this help.

    Luc Regnault
    Alwan Color Expertise
    Research & Development
    <luc...>
    http://www.alwancolor.com/
    http://regnault.luc.free.fr/

    Le 10 oct. 06 à 08:56, Adam Somers a écrit :

    > Hello list.  Does anyone know if there is a mechanism in Quartz 2D for
    > importing EMF, WMF, or any other kind of vector data that can be
    > exported out of Adobe Illustrator?  Windows' GDI+ can do this, so I
    > would be surprised if Quartz is incapable of it.  I am working on a
    > vector-based GUI, reconstructing the widget designs 'by hand' using
    > basic quartz drawing features and paths.  I would much rather import a
    > metafile, but can't see any way to do this.
    >
    > Thanks,
    > Adam
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • On 10/10/06, Luc Regnault <Luc.Regnault...> wrote:

    > For drawing, there is no Shading drawing, but
    > next system Leopard (10.5) have just add two Shading type 2 and 3
    > (radial and axial).

    Don't forget that Leopard is under NDA.

    -Shawn
  • Am 10.10.2006 um 08:56 schrieb Adam Somers:
    > Hello list.  Does anyone know if there is a mechanism in Quartz 2D for
    > importing EMF, WMF, or any other kind of vector data that can be
    > exported out of Adobe Illustrator?

    EMF and WMF are both Windows-specific file formats, so it's not
    really surprising MacOS X doesn't support those (WMF is to Windows as
    PICT is to MacOS 9).

    But IIRC You can at least draw PDF, PostScript and EPS with Quartz,
    all three of which are Adobe formats that Illustrator must be
    exporting. Though it may depend on what you want to do with this
    vector data. I'm not sure Quartz currently lets you get at the actual
    objects, however it will render these graphics nicely at any resolution.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
  • Le 10 oct. 06 à 20:43, Shawn Erickson a écrit :

    >
    >> For drawing, there is no Shading drawing, but
    >> next system Leopard (10.5) have just add two Shading type 2 and 3
    >> (radial and axial).
    >
    > Don't forget that Leopard is under NDA.

    Ooops...
    Luc.

    > -Shawn

    Luc Regnault
    Alwan Color Expertise
    Research & Development
    <luc...>
    http://www.alwancolor.com/
    http://regnault.luc.free.fr/
  • Le 10 oct. 06 à 22:49, Uli Kusterer a écrit :

    > But IIRC You can at least draw PDF, PostScript and EPS with Quartz,
    > all three of which are Adobe formats that Illustrator must be
    > exporting. Though it may depend on what you want to do with this
    > vector data. I'm not sure Quartz currently lets you get at the
    > actual objects, however it will render these graphics nicely at any
    > resolution.

    Yes it's possible to access the actual objects by parsing the page
    content of PDF file with CGPDFScanner, and ressources with CGPDF
    functions.
    Luc.

    >
    > Cheers,
    > -- M. Uli Kusterer

    Luc Regnault
    Alwan Color Expertise
    Research & Development
    <luc...>
    http://www.alwancolor.com/
    http://regnault.luc.free.fr/
  • On 10 okt 2006, at 10.38, Luc Regnault wrote:

    > As I know through my own experience, Quartz 2D is really build for
    > drawing, for PDF content creation, and draw internally an
    > interpreted PDF content stream. For drawing, there is no Shading
    > drawing, but next system Leopard (10.5) have just add two Shading
    > type 2 and 3 (radial and axial).

    CoreGraphics have support for Radial and Axial shadings on Mac OS X
    10.4:

    <http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
    drawingwithquartz2d/dq_shadings/chapter_9_section_1.html
    >

    j o a r
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today