summaryrefslogtreecommitdiff
path: root/coders/txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/txt.c')
-rw-r--r--coders/txt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coders/txt.c b/coders/txt.c
index 612633323..02082c782 100644
--- a/coders/txt.c
+++ b/coders/txt.c
@@ -476,17 +476,17 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
q=GetAuthenticPixels(image,x_offset,y_offset,1,1,exception);
if (q == (PixelPacket *) NULL)
continue;
- SetRedPixelComponent(q,ScaleAnyToQuantum(pixel.red,range));
- SetGreenPixelComponent(q,ScaleAnyToQuantum(pixel.green,range));
- SetBluePixelComponent(q,ScaleAnyToQuantum(pixel.blue,range));
+ SetPixelRed(q,ScaleAnyToQuantum(pixel.red,range));
+ SetPixelGreen(q,ScaleAnyToQuantum(pixel.green,range));
+ SetPixelBlue(q,ScaleAnyToQuantum(pixel.blue,range));
if (image->colorspace == CMYKColorspace)
{
indexes=GetAuthenticIndexQueue(image);
- SetIndexPixelComponent(indexes,ScaleAnyToQuantum(pixel.index,
+ SetPixelIndex(indexes,ScaleAnyToQuantum(pixel.index,
range));
}
if (image->matte != MagickFalse)
- SetAlphaPixelComponent(q,ScaleAnyToQuantum(pixel.opacity,range));
+ SetPixelAlpha(q,ScaleAnyToQuantum(pixel.opacity,range));
if (SyncAuthenticPixels(image,exception) == MagickFalse)
break;
}