Lines Matching refs:ClampToQuantum
531 SetPixelRed(image,ClampToQuantum(pixel.red),q); in ReadTGAImage()
532 SetPixelGreen(image,ClampToQuantum(pixel.green),q); in ReadTGAImage()
533 SetPixelBlue(image,ClampToQuantum(pixel.blue),q); in ReadTGAImage()
535 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); in ReadTGAImage()
685 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WriteTGAPixel()
886 green=(unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
888 *q++=((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
891 ClampToQuantum(image->colormap[i].alpha) > midpoint)) ? 0x80 : 0) | in WriteTGAImage()
892 ((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
897 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].blue)); in WriteTGAImage()
898 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].green)); in WriteTGAImage()
899 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].red)); in WriteTGAImage()