Changeset 408
- Timestamp:
- 10/18/09 07:55:29 (5 months ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
magick/resize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/ChangeLog
r379 r408 1 2009-10-18 6.5.7-1 Cristy <quetzlzacatenango@image...> 2 * Alpha blending is not required for ScaleImage(). 3 1 4 2009-10-14 6.5.7-0 Pino Toscano <pino@kde...> 2 5 * ImageMagick fails to build in GNU/HURD due to absence of PATH_MAX. -
ImageMagick/trunk/magick/resize.c
r404 r408 2457 2457 *y_vector, 2458 2458 zero; 2459 2460 MagickRealType2461 alpha,2462 gamma;2463 2459 2464 2460 PointInfo … … 2768 2764 for (x=0; x < (long) scale_image->columns; x++) 2769 2765 { 2770 alpha=1.0; 2771 if (image->matte != MagickFalse) 2772 alpha=(MagickRealType) (QuantumScale*(QuantumRange-t->opacity)); 2773 gamma=1.0/(fabs((double) alpha) <= MagickEpsilon ? 1.0 : alpha); 2774 q->red=RoundToQuantum(gamma*t->red); 2775 q->green=RoundToQuantum(gamma*t->green); 2776 q->blue=RoundToQuantum(gamma*t->blue); 2766 q->red=RoundToQuantum(t->red); 2767 q->green=RoundToQuantum(t->green); 2768 q->blue=RoundToQuantum(t->blue); 2777 2769 if (scale_image->matte != MagickFalse) 2778 2770 q->opacity=RoundToQuantum(t->opacity); 2779 2771 if (scale_indexes != (IndexPacket *) NULL) 2780 scale_indexes[x]=(IndexPacket) RoundToQuantum( gamma*t->index);2772 scale_indexes[x]=(IndexPacket) RoundToQuantum(t->index); 2781 2773 t++; 2782 2774 q++;
