Re: Can an image be "rejected" by CALayer?
Re: Can an image be "rejected" by CALayer?
- Subject: Re: Can an image be "rejected" by CALayer?
- From: Gabriel Zachmann <email@hidden>
- Date: Tue, 12 Apr 2011 10:43:34 +0200
> Assuming this is the entirety of the code, then as mentioned previously you never set the bounds or frame of your layer.
Well, I don't know what to say ... I've just rediscovered that I actually do set the bounds:
if ( orientation >= 5 )
// swap width & height
imgLayer.bounds = CGRectMake(drawRect_.origin.x, drawRect_.origin.y, drawRect_.size.height, drawRect_.size.width);
else
imgLayer.bounds = NSRectToCGRect( drawRect_ );
where 'orientation' is the EXIF tag.
Best regards,
Gabriel.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden