Create a context with UIGraphicsBeginImageContext, apply your blend, and get the image out of the context with UIGraphicsGetImageFromCurrentImageContext, and don't forget to end your context.
Luke On Jan 22, 2010, at 6:59 AM, Eric E. Dolecki wrote: > Okay, how would I go about doing that? > > On Fri, Jan 22, 2010 at 9:52 AM, Luke the Hiesterman <luket...@apple.com> > wrote: > You should perform whatever blending you need to do on the image itself to > create a new image which you can then just put into a UIImageView like you > would any other image. This way, you only have to blend once, and then it's > just image that can be straight drawn rather than performing a blending > algorithm every time your image has to draw. > > Luke > > On Jan 22, 2010, at 6:08 AM, Eric E. Dolecki wrote: > > > I am loading up a table with contents from an XML file and loading images > > into some cells. Since these images were made for the web some have white > > backgrounds. I would like to somehow set them as "multiply" as one might do > > in Photoshop to make the white "go away". Blendmode kind of thing. > > > > Do I need to subclass UIView, set blendmode in it's drawRect, place the > > UIImageView in there, then apply to a cell... > > or is there a way I can simply set a blendmode to a UIImageView? > > > > Eric > > _______________________________________________ > > > > 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: > > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > > > This email sent to luket...@apple.com > > > > > -- > http://ericd.net > Interactive design and development _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com