Registry / utility / imgref

imgref

JSON →
library1.12.0rscratesunverified

A basic 2-dimensional slice for safe and convenient handling of pixel buffers with width, height and stride.

# Cargo.toml [dependencies] imgref = "1.12.0"
INSTALL
IMPORT
SIG · IMGREF
I
imgref
utilityrustv1.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ImgRef
use imgref::ImgRef;

Creates an ImgRef from a pixel buffer with specified width and height.

use imgref::ImgRef; fn main() { let pixels = vec![0u8; 100]; let img = ImgRef::new(&pixels, 10, 10); println!("Image dimensions: {}x{}", img.width(), img.height()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources