Lines Matching defs:image

52 #include "MagickCore/image.h"
53 #include "MagickCore/image-private.h"
77 % ReadMACImage() reads an MacPaint image file and returns it. It
79 % pointer to the new image.
87 % o image_info: the image info.
95 *image;
123 Open image file.
132 image=AcquireImage(image_info,exception);
133 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
136 image=DestroyImageList(image);
140 Read MAC X image.
142 length=ReadBlobLSBShort(image);
146 if (ReadBlobByte(image) == EOF)
148 image->columns=576;
149 image->rows=720;
150 image->depth=1;
151 if (AcquireImageColormap(image,2,exception) == MagickFalse)
155 (void) CloseBlob(image);
156 return(GetFirstImageInList(image));
158 status=SetImageExtent(image,image->columns,image->rows,exception);
160 return(DestroyImageList(image));
162 Convert MAC raster image to pixel packets.
164 length=(image->columns+7)/8;
170 for (y=0; y < (ssize_t) image->rows; )
172 count=(unsigned char) ReadBlobByte(image);
173 if (EOFBlob(image) != MagickFalse)
177 byte=(unsigned char) (~ReadBlobByte(image));
186 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
192 for (x=0; x < (ssize_t) image->columns; x++)
196 SetPixelIndex(image,((byte & 0x80) != 0 ? 0x01 : 0x00),q);
201 q+=GetPixelChannels(image);
203 if (SyncAuthenticPixels(image,exception) == MagickFalse)
215 byte=(unsigned char) (~ReadBlobByte(image));
221 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
227 for (x=0; x < (ssize_t) image->columns; x++)
231 SetPixelIndex(image,((byte & 0x80) != 0 ? 0x01 : 0x00),q);
236 q+=GetPixelChannels(image);
238 if (SyncAuthenticPixels(image,exception) == MagickFalse)
247 (void) SyncImage(image,exception);
248 (void) CloseBlob(image);
249 return(GetFirstImageInList(image));
264 % RegisterMACImage() adds attributes for the MAC X image format to the list
265 % of supported formats. The attributes include the image format tag, a