1 Star 1 Fork 1

shirne / buffer_image

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

BufferImage

pub package

A library for modify and display rgba format image data.

preview

demo code:

// create ImageProvider
BufferImage bufferImage = BufferImage(100, 100);
for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 100; j++) {
    bufferImage.setColor(
        i, j, Colors.primaries[(i * 100 + j) % Colors.primaries.length]);
    }
}
image = RgbaImage.fromBufferImage(bufferImage, scale: 1);
bufferImage.resize(2);
scaleImage = RgbaImage.fromBufferImage(bufferImage, scale: 1);


// display Image
Center(
    child: Column(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: <Widget>[
        Image(
            image: image,
        ),
        Image(
            image: scaleImage,
        ),
        ],
    ),
)

Preview

Features

  • ✅ BufferImage for edit the pixel image
  • ✅ ImageProvider for display in Image Widget
  • ✅ Scale the image (Nearest sample mode and Bilinear sample mode is available)
  • ✅ Color/Image mask with a blend mode
  • ✅ Rotate
  • ✅ drawRect drawImage
  • ✅ clipPath drawPath
  • ✅ GrayImage & multiple GrayScale algorithm
  • 🚧 ImageProvider optimize
  • 🚧 any more...

Flutter

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

用于编辑及显示原始像素格式(rgba)图片的Dart库. expand collapse
Dart and 6 more languages
Apache-2.0
Cancel

Releases (7)

All

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/shirne/buffer_image.git
git@gitee.com:shirne/buffer_image.git
shirne
buffer_image
buffer_image
master

Search

E71a60c3 8189591 Df7b7c6b 8189591