Lines Matching refs:image
53 #include "MagickCore/image.h"
54 #include "MagickCore/image-private.h"
79 % ReadCAPTIONImage() reads a CAPTION image file and returns it. It
80 % allocates the memory necessary for the new Image structure and returns a
81 % pointer to the new image.
85 % Image *ReadCAPTIONImage(const ImageInfo *image_info,
90 % o image_info: the image info.
95 static Image *ReadCAPTIONImage(const ImageInfo *image_info,
111 Image
112 *image;
129 Initialize Image structure.
138 image=AcquireImage(image_info,exception);
139 (void) ResetImagePage(image,"0x0+0+0");
145 property=InterpretImageProperties((ImageInfo *) image_info,image,
149 property=InterpretImageProperties((ImageInfo *) image_info,image,option+8,
152 property=InterpretImageProperties((ImageInfo *) image_info,image,option,
154 (void) SetImageProperty(image,"caption",property,exception);
156 caption=ConstantString(GetImageProperty(image,"caption",exception));
164 if (image->columns == 0)
167 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,
175 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception);
177 image->columns=width;
179 if (image->rows == 0)
183 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,exception);
190 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception);
191 image->rows=(size_t) ((i+1)*(metrics.ascent-metrics.descent+
194 status=SetImageExtent(image,image->columns,image->rows,exception);
198 return(DestroyImageList(image));
200 if (SetImageBackgroundColor(image,exception) == MagickFalse)
203 image=DestroyImageList(image);
204 return((Image *) NULL);
218 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,
226 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception);
229 if ((image->columns != 0) && (image->rows != 0))
231 if ((width >= image->columns) && (height >= image->rows))
235 if (((image->columns != 0) && (width >= image->columns)) ||
236 ((image->rows != 0) && (height >= image->rows)))
244 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,
252 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception);
255 if ((image->columns != 0) && (image->rows != 0))
257 if ((width < image->columns) && (height < image->rows))
263 if (((image->columns != 0) && (width < image->columns)) ||
264 ((image->rows != 0) && (height < image->rows)))
274 i=FormatMagickCaption(image,draw_info,split,&metrics,&caption,exception);
277 draw_info->direction == RightToLeftDirection ? image->columns-
281 status=AnnotateImage(image,draw_info,exception);
289 (void) SetImageProperty(image,"caption:pointsize",pointsize,exception);
295 image=DestroyImageList(image);
296 return((Image *) NULL);
298 return(GetFirstImageInList(image));
313 % RegisterCAPTIONImage() adds attributes for the CAPTION image format to
314 % the list of supported formats. The attributes include the image format