From 66acb21dbbe3e8fb69b2bbd950bc225d4ed4cb4f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 11 Nov 2014 01:51:02 +0100 Subject: Fix alpha, blur, sharpen, constast, brightness, and gamma switches --- src/yawa.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/yawa.h') diff --git a/src/yawa.h b/src/yawa.h index e9cc2c8..458050b 100644 --- a/src/yawa.h +++ b/src/yawa.h @@ -40,9 +40,9 @@ struct arguments { signed angle; unsigned blur_radius; unsigned sharpen_radius; - unsigned contrast_amount; - unsigned brightness_amount; - unsigned gamma_amount; + double contrast_amount; + double brightness_amount; + double gamma_amount; unsigned alpha_amount; bool add: 1; @@ -89,11 +89,11 @@ static struct argp_option options[] = { {0, 0, 0, 0, "Manipulations:", 4}, {"tint", 'T', "COLOR", 0, "Tint current image", 4}, - {"blur", 'b', "RADIUS", 0, "Blur the current image", 4}, // Not implemented - {"sharpen", 'S', "RADIUS", 0, "Sharpen the current image", 4}, // Not implemented - {"contrast", 'o', "AMOUNT", 0, "Adjust the contrast of the current image", 4}, // Not implemented - {"brightness", 'B', "AMOUNT", 0, "Adjust the bightness of the current image", 4}, // Not implemented - {"gamma", 'G', "AMOUNT", 0, "Adjust the gamma level of the current image", 4}, // Not implemented + {"blur", 'b', "RADIUS", 0, "Blur the current image", 4}, + {"sharpen", 'S', "RADIUS", 0, "Sharpen the current image", 4}, + {"contrast", 'o', "AMOUNT", 0, "Adjust the contrast of the current image", 4}, + {"brightness", 'B', "AMOUNT", 0, "Adjust the bightness of the current image", 4}, + {"gamma", 'G', "AMOUNT", 0, "Adjust the gamma level of the current image", 4}, {"flipv", 'v', 0, 0, "Flip the current image vertically", 4}, {"fliph", 'h', 0, 0, "Flip the current image horizontally", 4}, {"flipd", 'd', 0, 0, "Flip the current image diagonally", 4}, -- cgit v1.2.3-54-g00ecf