Thanks to all!

Ron


On Mar 6, 9:24 am, Kyle Sluder <k...@ksluder.com> wrote:
> On Mar 5, 2012, at 11:21 PM, Graham Cox <graham....@bigpond.com> wrote:
>
>
>
> > Is the goal to go from red to blue from left to right?
>
> > Why not add a single layer with red on the left, alpha = 1, and blue on the 
> > right, alpha = 1? I don't see why you need to composite two layers.
>
> > Drawing a gradient dynamically is probably more efficient than blitting a 
> > PNG, and will be resolution independent.
>
> These scenarios are rarely so cut and dry.
>
> If all you want is a simple gradient, then using a CAGradientLayer should be 
> the fastest approach. It should result in zero backing store allocation.
>
> If you want to do something more complex, you might well do best to load a 
> PNG and set it as the layer's content, rather than perform the rendering 
> yourself. Tour VRAM usage will be known, and drawing your layer will involve 
> zero CPU usage or texture uploads.
>
> It all depends on your willingness to accept visual artifacts, the size 
> constraints of your binary, and what Instruments tells you is e best approach.
>
> --Kyle Sluder
> _______________________________________________
>
> Cocoa-dev mailing list (cocoa-...@lists.apple.com)
>
> 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:https://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev-garchive-...
>
> This email sent to cocoa-dev-garchive-98...@googlegroups.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to