Triangular dot matrix fuzzy effects iOS source code and dot matrix fuzzy ios source code

Source: Internet
Author: User

Triangular dot matrix fuzzy effects iOS source code and dot matrix fuzzy ios source code

 

Source code: FFAngularPointilism and FFAngularPointilism can generate triangular dot matrix blur effects like adding a filter to the UIImageView. You can blur it by means of animation or instant blur. In addition, animations with blurred mode are provided. You can configure the Blur degree and flash interval for an animation.
:
  • <Ignore_js_op>

Usage:


Copy the FFAngularPointilism folder in the Demo to the project, and copy the four triangle patterns in Images. xcassets to the project.

Image Blur
Initialization:
_ ImageView = [[FFDoubleTriangleView alloc] initWithImage: [UIImage imageNamed: @ "ww"];
[Self. view addSubview: self. imageView];

Animation Mode:
[Self. imageView startAnimatedEffect: FFDoubleTriangleViewEffectMosaicFilter
WithCompletion: ^
{
// Complete fuzzy search
}];
Blur now:
[Self. imageView applyFilter];
--------------------------------------------------------------------
Fuzzy Animation:
Self. shutteringView. coordinateSquaresToOmit = @ [@ [@ 0, @ 0];
_ ShutteringView = [[FFShutteringView alloc] initWithFrame: self. view. bounds];
[Self. containerShutteringView addSubview: _ shutteringView];

Animation start:
[Self. shutteringView sparkLife];

Set various animation attributes:
-Self. shutteringView. maximumAllowedDeathTicks = 1.0/(sender. value) * 400;
-Self. shutteringView. frameRate = sender. value * 30;

For details, refer to the demo.

Http://ios.662p.com/thread-2325-1-1.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.