Registry / other / gdk-pixbuf

gdk-pixbuf

JSON →
library0.22.0rscratesunverified

Rust bindings for the GdkPixbuf library.

# Cargo.toml [dependencies] gdk-pixbuf = "0.22.0"
INSTALL
IMPORT
SIG · GDK-PIXBUF
G
gdk-pixbuf
otherrustv0.22.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.

Pixbuf
use gdk_pixbuf::Pixbuf;

Loads an image file into a Pixbuf.

use gdk_pixbuf::Pixbuf; fn main() -> Result<(), Box<dyn std::error::Error>> { let pixbuf = Pixbuf::from_file("image.png")?; println!("Image size: {}x{}", pixbuf.width(), pixbuf.height()); Ok(()) }
Debug
Known issues
gotchaRequires the GTK development libraries installed on the system (e.g., libgdk-pixbuf2.0-dev on Debian).
fix
Install the system package for gdk-pixbuf development files.
affects: >=0.1.0
Upgrade
Version history
0.22.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gdk-pixbuf — cargo add gdk-pixbuf · libregistry