diff --git a/Lib/operat.c b/Lib/operat.c index 122ff0b..a6c5806 100644 --- a/Lib/operat.c +++ b/Lib/operat.c @@ -259,43 +259,6 @@ for (foo=0; foo<256; foo++) Image_LUT_mono(src, dst, cumul); dst->modified = 1; -return 0; -} -/*::------------------------------------------------------------------::*/ -/* - cette fonction ne marche que si les deux images - sont allouees et de meme dimensions. - */ -int -Image_copy(Image_Desc *src, Image_Desc *dst) -{ -int foo; - -if ( (foo=Image_compare_desc(src, dst)) ) - { - fprintf(stderr, "Image_Copy: images are differents %d\n", foo); - return foo; - } - -for (foo=0; fooheight; foo++) - { - memcpy(dst->Rpix[foo], src->Rpix[foo], src->width); - memcpy(dst->Gpix[foo], src->Gpix[foo], src->width); - memcpy(dst->Bpix[foo], src->Bpix[foo], src->width); - if (dst->Apix!=NULL && src->Apix!=NULL) - memcpy(dst->Apix[foo], src->Apix[foo], src->width); - } - -dst->modified = 1; -/* - >> 18 Juin 2002 - >> ============ - >> bon, maintenant se pose un grand problème philosophique. - >> on vient juste de copier les octets qui incarnent les pixels - >> rgb et peut-être alpha. Mais ce n'est que la partie évident - >> d'une image: ses pixels. - */ - return 0; } /*::------------------------------------------------------------------::*/