diff --git a/pixmappaint.d b/pixmappaint.d index 99db70d..c2370ae 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -311,6 +311,16 @@ static if (hasGamutIntegration) { /++ Creates a Pixmap copying the pixel data from the provided [GamutImage]. + + --- + // Load image using Gamut + import gamut; + Image img; + img.loadFromFile("dunes.jpg"); + + // Convert to Pixmap + Pixmap pixmap = img.toPixmap(); + --- +/ bool toPixmap(ref GamutImage source, out Pixmap result) @trusted nothrow in (source.isValid) {