Re: Clipping drawing printed to PDF?
Re: Clipping drawing printed to PDF?
- Subject: Re: Clipping drawing printed to PDF?
- From: "I. Savant" <email@hidden>
- Date: Tue, 8 Jan 2008 06:51:08 -0500
I have an NSView that intentionally draws some graphics out of the
view's frame, so that part of the graphics get clipped. When the
view is drawn to screen or the printer, the graphics are clipped
correctly, so only part of the graphic is drawn in the view and the
other part doesn't appear. When the view is drawn to PDF, however,
using -dataWithPDFInsideRect:, then the graphics that are supposed
to be clipped end up being drawn over the top of another subview of
the superview. How do I stop this from occurring?
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/GraphicsContexts/chapter_3_section_3.html
See "Setting the Clipping Region".
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden