stack_blur 0.2.2 copy "stack_blur: ^0.2.2" to clipboard
stack_blur: ^0.2.2 copied to clipboard

Fast and beautiful image blurring algorithm for raw RGBA pixel buffers.

example/example.dart

import 'dart:io';

import 'package:image/image.dart';
import 'package:stack_blur/stack_blur.dart';

void main() {
  // loading image from file
  final image = decodeImage(File('source.png').readAsBytesSync())!;

  // blurring image pixels with blur radius 42
  stackBlurRgba(image.data, image.width, image.height, 42);

  // saving image to file
  File('blurred.png').writeAsBytesSync(encodePng(image));
}
8
likes
160
pub points
51%
popularity

Publisher

verified publisherrevercode.com

Fast and beautiful image blurring algorithm for raw RGBA pixel buffers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on stack_blur