Hey,
Would just like to say thanks to jules before I start this post! Before I discovered Juce I’d never ventured into the realms of C++ and never even touched C much. Juce is a pure work of art in my humble opinion.
Anyway I’m using juce for some work I’m doing for my masters. I’m making a simple vector graphics tool and would like at some stage to print some output, perhaps not to a printer but at least to a file that’s easy to print. Anyway the postscript class seemed a good port of call but I encountered some hitches and I’m not too sure if it’s because I’m being a noob, whether its a limitation to do with postscript file format or if it’s limitations with juce.
Basically if I try to draw an image to a LowLevelGraphicsPostScriptRenderer strange things happen.
This Works:
FileOutputStream postFileStream (postFile);
LowLevelGraphicsPostScriptRenderer postLevel (postFileStream, postscriptname, awidth, aheight);
Graphics g (&postLevel);
g.drawRect(5, 5, 100, 100, 3);
But this doesn’t:
FileOutputStream postFileStream (postFile);
LowLevelGraphicsPostScriptRenderer postLevel (postFileStream, postscriptname, awidth, aheight);
Graphics g (&postLevel);
Image mytestimage (Image::ARGB, 500, 500, true);
Graphics c (mytestimage);
c.drawRect(5, 5, 100, 100, 3);
g.drawImageAt(&mytestimage, 0, 0, false);
Any suggestions? Should I just give up on postscript?
Thanks