Changeset 408

Show
Ignore:
Timestamp:
10/18/09 07:55:29 (5 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/ChangeLog

    r379 r408  
     12009-10-18  6.5.7-1 Cristy  <quetzlzacatenango@image...> 
     2  * Alpha blending is not required for ScaleImage(). 
     3 
    142009-10-14  6.5.7-0 Pino Toscano  <pino@kde...> 
    25  * ImageMagick fails to build in GNU/HURD due to absence of PATH_MAX. 
  • ImageMagick/trunk/magick/resize.c

    r404 r408  
    24572457    *y_vector, 
    24582458    zero; 
    2459  
    2460   MagickRealType 
    2461     alpha, 
    2462     gamma; 
    24632459 
    24642460  PointInfo 
     
    27682764      for (x=0; x < (long) scale_image->columns; x++) 
    27692765      { 
    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); 
    27772769        if (scale_image->matte != MagickFalse) 
    27782770          q->opacity=RoundToQuantum(t->opacity); 
    27792771        if (scale_indexes != (IndexPacket *) NULL) 
    2780           scale_indexes[x]=(IndexPacket) RoundToQuantum(gamma*t->index); 
     2772          scale_indexes[x]=(IndexPacket) RoundToQuantum(t->index); 
    27812773        t++; 
    27822774        q++;