Changeset 2605 for libpipi/trunk/pipi/codec.c
- Timestamp:
- 07/29/08 01:01:29 (5 years ago)
- File:
-
- 1 edited
-
libpipi/trunk/pipi/codec.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/pipi/codec.c
r2261 r2605 50 50 } 51 51 52 pipi_image_t *pipi_copy(pipi_image_t const *img)53 {54 pipi_image_t *dst;55 int x, y;56 dst = pipi_new(img->width, img->height);57 for(y = 0; y < img->height; y++)58 {59 for(x = 0; x < img->width; x++)60 {61 double r, g, b;62 pipi_getpixel(img, x, y, &r, &g, &b);63 pipi_setpixel(dst, x, y, r, g, b);64 }65 }66 return dst;67 }68 69 52 void pipi_free(pipi_image_t *img) 70 53 {
Note: See TracChangeset
for help on using the changeset viewer.
