X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=coders%2Fpattern.c;h=27d45c3871bf8b2f94ef9bc5c8856f1936ade875;hb=77b33baacfae08c3794dd19df1862fb645ebe265;hp=6c47af888a8a8d8f366e07095e11750cea7c2983;hpb=e41d079d51dfd10e3bd64a009fff23bbd54b11e9;p=imagemagick diff --git a/coders/pattern.c b/coders/pattern.c index 6c47af888..27d45c387 100644 --- a/coders/pattern.c +++ b/coders/pattern.c @@ -17,7 +17,7 @@ % May 2003 % % % % % -% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization % +% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization % % dedicated to making software imaging solutions freely available. % % % % You may not use this file except in compliance with the License. You may % @@ -988,13 +988,7 @@ static Image *ReadPATTERNImage(const ImageInfo *image_info, Tile pattern across image canvas. */ pattern_image=image; - image=CloneImage(pattern_image,0,0,MagickTrue,exception); - (void) ParseAbsoluteGeometry(image_info->size,&image->extract_info); - image->columns=image->extract_info.width; - image->rows=image->extract_info.height; - image->offset=image->extract_info.x; - image->extract_info.x=0; - image->extract_info.y=0; + image=AcquireImage(image_info,exception); (void) TextureImage(image,pattern_image,exception); pattern_image=DestroyImage(pattern_image); }