bitmap
0.3.0, released 11 months ago by blue-fire.xyz
Fast, minimalist Flutter package for manipulating bitmap images using Dart FFI.
What it does
Provides a minimalist API to manipulate image bitmaps using RGBA32 format. Uses Dart FFI to perform fast operations such as contrast, brightness, saturation, exposure, rotation, flipping, resizing, and cropping.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need fast bitmap manipulation operations like contrast, brightness, and resizing
- You want to avoid multi-conversion overhead between custom image formats and Flutter's display requirements
Skip it when
- You need complex format encoding, EXIF data handling, or multi-frame image support
- You need built-in caching and downloading capabilities for network images
Strengths
- Blazing fast performance via Dart FFI and C/C++ ports
- Direct integration with Flutter ImageProvider and RGBA32 format
- Supports batch operations
Weaknesses
- Does not support format encoding or EXIF data
- Resizing currently only supports nearest interpolation
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:bitmap/bitmap.dart';
Bitmap bitmap = await Bitmap.fromProvider(NetworkImage("http://pudim.com.br/pudim.jpg"));
Bitmap contrastedBitmap = bitmap.apply(BitmapContrast(0.2));
Uint8List headedBitmap = contrastedBitmap.buildHeaded();Alternatives
Packages that do the same job and could replace bitmap.
Works with
Packages commonly used together with bitmap: ones it builds on, ones built on it, and its own family.