Mailing Lists: Apple Mailing Lists

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

Drawing the contents of a CGContext to another CGContext



Hello,

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?

I couldn't find a function to simply copy an area from a CGContext
into another one.

I have access to the pointer where the bits are located.

thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
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


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.