Lines Matching refs:ximage
199 *ximage; in ReadXWDImage() local
272 ximage=(XImage *) AcquireMagickMemory(sizeof(*ximage)); in ReadXWDImage()
273 if (ximage == (XImage *) NULL) in ReadXWDImage()
275 ximage->depth=(int) header.pixmap_depth; in ReadXWDImage()
276 ximage->format=(int) header.pixmap_format; in ReadXWDImage()
277 ximage->xoffset=(int) header.xoffset; in ReadXWDImage()
278 ximage->data=(char *) NULL; in ReadXWDImage()
279 ximage->width=(int) header.pixmap_width; in ReadXWDImage()
280 ximage->height=(int) header.pixmap_height; in ReadXWDImage()
281 ximage->bitmap_pad=(int) header.bitmap_pad; in ReadXWDImage()
282 ximage->bytes_per_line=(int) header.bytes_per_line; in ReadXWDImage()
283 ximage->byte_order=(int) header.byte_order; in ReadXWDImage()
284 ximage->bitmap_unit=(int) header.bitmap_unit; in ReadXWDImage()
285 ximage->bitmap_bit_order=(int) header.bitmap_bit_order; in ReadXWDImage()
286 ximage->bits_per_pixel=(int) header.bits_per_pixel; in ReadXWDImage()
287 ximage->red_mask=header.red_mask; in ReadXWDImage()
288 ximage->green_mask=header.green_mask; in ReadXWDImage()
289 ximage->blue_mask=header.blue_mask; in ReadXWDImage()
290 if ((ximage->width < 0) || (ximage->height < 0) || (ximage->depth < 0) || in ReadXWDImage()
291 (ximage->format < 0) || (ximage->byte_order < 0) || in ReadXWDImage()
292 (ximage->bitmap_bit_order < 0) || (ximage->bitmap_pad < 0) || in ReadXWDImage()
293 (ximage->bytes_per_line < 0)) in ReadXWDImage()
295 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
298 if ((ximage->width > 65535) || (ximage->height > 65535)) in ReadXWDImage()
300 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
303 if ((ximage->bits_per_pixel > 32) || (ximage->bitmap_unit > 32)) in ReadXWDImage()
305 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
308 x_status=XInitImage(ximage); in ReadXWDImage()
311 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
330 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
339 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
366 length=(size_t) ximage->bytes_per_line*ximage->height; in ReadXWDImage()
367 if (CheckOverflowException(length,ximage->bytes_per_line,ximage->height)) in ReadXWDImage()
371 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
374 if (ximage->format != ZPixmap) in ReadXWDImage()
380 length*=ximage->depth; in ReadXWDImage()
381 if (CheckOverflowException(length,extent,ximage->depth)) in ReadXWDImage()
385 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
389 ximage->data=(char *) AcquireQuantumMemory(length,sizeof(*ximage->data)); in ReadXWDImage()
390 if (ximage->data == (char *) NULL) in ReadXWDImage()
394 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
397 count=ReadBlob(image,length,(unsigned char *) ximage->data); in ReadXWDImage()
402 ximage->data=DestroyString(ximage->data); in ReadXWDImage()
403 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
409 image->columns=(size_t) ximage->width; in ReadXWDImage()
410 image->rows=(size_t) ximage->height; in ReadXWDImage()
417 ximage->data=DestroyString(ximage->data); in ReadXWDImage()
418 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
421 if ((header.ncolors == 0U) || (ximage->red_mask != 0) || in ReadXWDImage()
422 (ximage->green_mask != 0) || (ximage->blue_mask != 0)) in ReadXWDImage()
447 red_mask=ximage->red_mask; in ReadXWDImage()
454 green_mask=ximage->green_mask; in ReadXWDImage()
461 blue_mask=ximage->blue_mask; in ReadXWDImage()
479 pixel=XGetPixel(ximage,(int) x,(int) y); in ReadXWDImage()
509 pixel=XGetPixel(ximage,(int) x,(int) y); in ReadXWDImage()
543 ximage->data=DestroyString(ximage->data); in ReadXWDImage()
544 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()
563 index=ConstrainColormapIndex(image,XGetPixel(ximage,(int) x, in ReadXWDImage()
584 ximage->data=DestroyString(ximage->data); in ReadXWDImage()
585 ximage=(XImage *) RelinquishMagickMemory(ximage); in ReadXWDImage()