diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/crop.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/examples/crop.c b/examples/crop.c index f99f931..c72c641 100644 --- a/examples/crop.c +++ b/examples/crop.c @@ -58,19 +58,7 @@ int main() return 1; } - im2 = gdImageThresholdCrop(im, 0xFFFFFF, 120); - if (im2) { - save_png(im2, "a3.png"); - gdImageDestroy(im2); - } - gdImageDestroy(im); - - im = read_png("test_crop_threshold.png"); - if (!im) { - return 1; - } - - im2 = gdImageThresholdCrop(im, 0xFFFFFF, 70); + im2 = gdImageThresholdCrop(im, 0xFFFFFF, 0.6); if (im2) { save_png(im2, "a4.png"); gdImageDestroy(im2); |