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 20 jun 2007, at 16:00, Felipe Monteiro de Carvalho wrote:

I created a CGContext based on a raw surface I allocated by self:

 FContext := CGBitmapContextCreate(FBits,
  NewWidth, NewHeight, 8, Stride, FColorSpace,
kCGImageAlphaNoneSkipFirst or kCGBitmapByteOrder32Little);

Then I would use this FContext to perform some drawing operations.
Now, I would like to draw part of this area into another CGContext,
with stretching and also without. How can this be done?

CGContextDrawImage(otherContext,boundsRect,CGBitmapContextCreateImage (FContext));


Note that CGBitmapContextCreateImage is only available in 10.4 and later.


Jonas _______________________________________________ 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>)



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.