Drawing to NSImage as PDF
Drawing to NSImage as PDF
- Subject: Drawing to NSImage as PDF
- From: Andrew Rambaut <email@hidden>
- Date: Tue, 02 Apr 2002 18:21:36 +0100
I am creating an NSImage and drawing some paths to it and then inserting it
into an NSImageView:
-- code example --
NSSize size = NSMakeSize(200, 200);
NSImage *image = [[[NSImage alloc] initWithSize:size] autorelease];
[image lockFocus];
// draw some paths here
[image unlockFocus];
[imageView setImage:image];
-----
later on I want to write the image as a PDF file but I just get a PDF
version of the screen bitmap. My question is, how do I get this image to
store a PDF representation of my paths and how do I retrieve it?
Thanks,
Andrew
--
===================================================================
Andrew Rambaut, EMAIL - email@hidden
Zoology Department, WWW -
http://evolve.zoo.ox.ac.uk/
University of Oxford, TEL - +44 1865 271261
South Parks Road, Oxford, UK FAX - +44 1865 271249
===================================================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.