goAdobeIllustrator Package


This is a package will write Graphico primitives to an Adobe Illustrator file. Adobe Illustrator is industry-standard illustration software.

The goAdobeIllustrator package uses Graphico's feedback mechanism to write out a depth sorted set of vector based lines and triangles into an Adobe Illustrator file. General steps involved to do so include:

  1. Capture Graphico primitive data into the feedback buffer.
  2. Create an Adobe Illustrator file.
  3. Write out the content of the feedback buffer to the Adobe Illustrator file.

An example of a some code could be the following:

// Save the current render mode.
go.push(Go.RENDER_MODE);

// Set the render mode to Go.FEEDBACK
go.renderMode(Go.FEEDBACK);

// Render something.
go.render(myData);

// Restore the render mode.
go.pop(Go.RENDER_MODE);

// Create the Adobe Illustrator file.
GoAdobeIllustrator file = new GoAdobeIllustrator(go, "myArt.ai", GoAdobeIllustrator.VERSION_8);

// Write out the content of Graphico's feedback buffer.
file.writeFeedback();

// Flush and close the file.
file.close();

// Remember to clear the feedback buffer.
go.clear(Go.FEEDBACK);

Reference Manual (see package "goAdobeIllustrator")


Example


Download Source Files for goAdobeIllustrator

Java and C++ files -> goAdobeIllustrator.src.jar