The following method tries to apply gausian blur to an image. Although it is not doing anything, can you please tell me what is wrong, and if you also know why this is wrong, then it will also help. . I am trying to learn about CALayers and Quartzcore
thanks
- (zero) updateFavoriteRecipeImage {[self.favoriteRecipeImage setImageWithURL: [NSURL URLWithString: self. ProfileVCModel.favoriteRecipeImageUrl] placeholder image: [UIImage imageNamed: @ "miNoImage"]]; // Set content mode [self.favoriteRecipeImage setContentMode: UIViewContentModeScaleAspectFill]; Self. Cute recipe image Layers Mask tubons = Yes; // Image CALayer * blurLayer = [CALayer layer] blurred; Seafielder * blur = [CIF filter filter name: @ "Sigassianblur"]; [Set bluff sets]; BlurLayer.backgroundFilters = [NSArray arrayWithObject: blur]; [Self. Cute recipe image Layer adblayer: Blurayer]; [Self. Cute Recipes Image Set Alpha: 0]; // Show the image using Fade [UIView animateWithDuration: .3 Animation: ^ {// Loaded alpha [self.favoriteRecipeImage setAlpha: 1]; [Self. Cute recipesmask setframe: self Cute recipe image.frame]; }]; } "itemprop =" text "> after saying
= special
As of iOS 6.1, there is no public API for implementing live filters for layers on iOS. You can write code to draw the underlying layers for a CGImage and then apply the filter to that image and set it as the background of your layer, but doing so is somewhat complicated And not one ???? LiveĆ¢ ???? (It does not automatically update that changes the underlying layers).
No comments:
Post a Comment