Lines Matching defs:image

50 #include "MagickCore/image.h"
51 #include "MagickCore/image-private.h"
80 % IsMVG() returns MagickTrue if the image format type, identified by the
89 % o magick: compare image format pattern against these bytes.
115 % ReadMVGImage creates a gradient image and initializes it to
118 % new image.
126 % o image_info: the image info.
139 *image;
145 Open image.
154 image=AcquireImage(image_info,exception);
155 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
158 image=DestroyImageList(image);
161 if ((image->columns == 0) || (image->rows == 0))
173 Determine size of image canvas.
175 while (ReadBlobString(image,primitive) != (char *) NULL)
182 image->columns=(size_t) floor((bounds.x2-bounds.x1)+0.5);
183 image->rows=(size_t) floor((bounds.y2-bounds.y1)+0.5);
187 if ((image->columns == 0) || (image->rows == 0))
190 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/
192 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/
194 image->columns=(size_t) (draw_info->affine.sx*image->columns);
195 image->rows=(size_t) (draw_info->affine.sy*image->rows);
196 status=SetImageExtent(image,image->columns,image->rows,exception);
198 return(DestroyImageList(image));
199 if (SetImageBackgroundColor(image,exception) == MagickFalse)
201 image=DestroyImageList(image);
207 if (GetBlobStreamData(image) == (unsigned char *) NULL)
208 draw_info->primitive=FileToString(image->filename,~0UL,exception);
211 draw_info->primitive=(char *) AcquireMagickMemory(GetBlobSize(image)+1);
214 CopyMagickMemory(draw_info->primitive,GetBlobStreamData(image),
215 GetBlobSize(image));
216 draw_info->primitive[GetBlobSize(image)]='\0';
221 (void) DrawImage(image,draw_info,exception);
223 (void) CloseBlob(image);
224 return(GetFirstImageInList(image));
239 % RegisterMVGImage() adds properties for the MVG image format
240 % to the list of supported formats. The properties include the image format
304 % WriteMVGImage() writes an image to a file in MVG image format.
309 % Image *image,ExceptionInfo *exception)
313 % o image_info: the image info.
315 % o image: The image.
320 static MagickBooleanType WriteMVGImage(const ImageInfo *image_info,Image *image,
330 Open output image file.
334 assert(image != (Image *) NULL);
335 assert(image->signature == MagickCoreSignature);
336 if (image->debug != MagickFalse)
337 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
338 value=GetImageArtifact(image,"MVG");
341 status=OpenBlob(image_info,image,WriteBlobMode,exception);
344 (void) WriteBlob(image,strlen(value),(const unsigned char *) value);
345 (void) CloseBlob(image);