Changeset 2713


Ignore:
Timestamp:
Aug 13, 2008, 10:26:38 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Allow pipi --blur to specify both the X and Y Gaussian sizes. Now we can create some nice, tileable brushed metal textures:

pipi pipi:random15x15 --geometry 512x512 --wrap --blur 40 \

pipi:random512x512 --wrap --blur 10x0 --autocontrast --wrap \
--blur 20x0 --multiply -o image.png

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/context.c

    r2712 r2713  
    119119        char const *arg;
    120120        va_list ap;
     121        double w, h;
    121122
    122123        if(ctx->nimages < 1)
     
    125126        arg = va_arg(ap, char const *);
    126127        va_end(ap);
     128        w = h = atof(arg);
     129        arg = strchr(arg, 'x');
     130        if(arg)
     131            h = atof(arg + 1);
    127132        src = ctx->images[ctx->nimages - 1];
    128         dst = pipi_gaussian_blur(src, atof(arg));
     133        dst = pipi_gaussian_blur_ext(src, w, h, 0.0, 0.0);
    129134        if(dst == NULL)
    130135            return -1;
Note: See TracChangeset for help on using the changeset viewer.