Ignore:
Timestamp:
Aug 28, 2008, 7:19:30 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Add pipi_order, to transform any image into an ordered dithering matrix.
File:
1 edited

Legend:

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

    r2781 r2790  
    392392        pipi_free(tmp);
    393393    }
     394    else if(!strcmp(cmd, "order"))
     395    {
     396        pipi_image_t *tmp;
     397        if(ctx->nimages < 1)
     398            return -1;
     399        tmp = ctx->images[ctx->nimages - 1];
     400        ctx->images[ctx->nimages - 1] = pipi_order(tmp);
     401        pipi_free(tmp);
     402    }
    394403    else if(!strcmp(cmd, "split"))
    395404    {
Note: See TracChangeset for help on using the changeset viewer.