Re: -renderInContext: with multiple layers?

2011-08-15 Thread Rick Mann
Each of my layers is actually a layer hierarchy. The problem I'm seeing is that if the image context's size is larger than the layer being drawn, the resulting image is smaller than it should be, even for a single layer hierarchy. For example, let's say my layer is 100 px wide, but the image co

Re: -renderInContext: with multiple layers?

2011-08-15 Thread Kyle Sluder
On Mon, Aug 15, 2011 at 2:47 PM, Rick Mann wrote: > Hi. I have two UIView hierarchies, visually side-by side, but at different > parts of an overall view hierarchy. I'd like  to create a single UIImage of > the two, using -renderInContext: and > UIGraphicsGetImageFromCurrentImageContext(). I wa

-renderInContext: with multiple layers?

2011-08-15 Thread Rick Mann
Hi. I have two UIView hierarchies, visually side-by side, but at different parts of an overall view hierarchy. I'd like to create a single UIImage of the two, using -renderInContext: and UIGraphicsGetImageFromCurrentImageContext(). I was able to make one work alone just fine. But when I make my