Changeset 2244 for libpipi


Ignore:
Timestamp:
Feb 27, 2008, 12:50:08 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Starting image resizing. X-wise resize works so far.
Location:
libpipi/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/genethumb/genethumb.c

    r2227 r2244  
     1#include "config.h"
     2#include "common.h"
     3
     4#include <pipi.h>
     5
    16int main(void)
    27{
     8    pipi_image_t *i, *j;
     9
     10    i = pipi_load("irc.png");
     11    j = pipi_resize(i, 100, 200);
     12    pipi_save(j, "irc.bmp");
     13    pipi_free(i);
     14    pipi_free(j);
     15
    316    return 0;
    417}
  • libpipi/trunk/pipi/Makefile.am

    r2228 r2244  
    1818        io.c \
    1919        pixels.c \
     20        resize.c \
    2021        $(NULL)
    2122libpipi_la_CFLAGS = $(CFLAGS_EXTRA)
  • libpipi/trunk/pipi/pipi.h

    r2228 r2244  
    3838extern int pipi_setpixel(pipi_image_t *img, int x, int y, int r, int g, int b);
    3939
     40extern pipi_image_t *pipi_resize(pipi_image_t const *, int, int);
     41
    4042#ifdef __cplusplus
    4143}
Note: See TracChangeset for help on using the changeset viewer.