Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing the contents of a CGContext to another CGContext



On Jun 20, 2007, at 1:31 PM, Felipe Monteiro de Carvalho wrote:

On 6/20/07, Jonas Maebe <email@hidden> wrote:
CGContextDrawImage(otherContext,boundsRect,CGBitmapContextCreateImage
(FContext));

What is really missing for me here is being able to select which area from the source Context will be copyed. Any ideas?

CGImageRef original = CGBitmapContextCreateImage(context); CGImageRef subsection = CGImageCreateWithImageInRect(original, subrect); CGImageRelease(original); // draw with subsection CGImageRelease(subsection); -- David Duncan Apple DTS Quartz and Printing email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Drawing the contents of a CGContext to another CGContext (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: Drawing the contents of a CGContext to another CGContext (From: Jonas Maebe <email@hidden>)
 >Re: Drawing the contents of a CGContext to another CGContext (From: "Felipe Monteiro de Carvalho" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.