xcf-rs 0.5.0

A basic standalone GIMP XCF library in Rust.
Documentation
1
2
3
4
5
6
7
8
9
use crate::RgbaPixel;

// TODO: Make this an enum? We should store a buffer that matches the channels present.
#[derive(Clone, Debug, PartialEq)]
pub struct PixelData {
    pub width: u32,
    pub height: u32,
    pub pixels: Vec<RgbaPixel>,
}