Changeset 199 for ImageMagick/trunk/coders/ept.c
- Timestamp:
- 09/24/09 20:18:25 (6 months ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/coders/ept.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/ept.c
r1 r199 352 352 static MagickBooleanType WriteEPTImage(const ImageInfo *image_info,Image *image) 353 353 { 354 char 355 filename[MaxTextExtent]; 356 354 357 EPTInfo 355 358 ept_info; … … 398 401 write_info=CloneImageInfo(image_info); 399 402 (void) CopyMagickString(write_info->magick,"TIFF",MaxTextExtent); 400 (void) FormatMagickString( write_info->filename,MaxTextExtent,"tiff:%.1024s",403 (void) FormatMagickString(filename,MaxTextExtent,"tiff:%.1024s", 401 404 write_info->filename); 405 (void) CopyMagickString(write_info->filename,filename,MaxTextExtent); 402 406 (void) TransformImage(&write_image,(char *) NULL,"512x512>"); 403 407 if ((write_image->storage_class == DirectClass) || … … 429 433 Write EPT image. 430 434 */ 431 (void) WriteBlobLSBLong(image, ept_info.magick);435 (void) WriteBlobLSBLong(image,(unsigned int) ept_info.magick); 432 436 (void) WriteBlobLSBLong(image,30); 433 (void) WriteBlobLSBLong(image,(unsigned long) ept_info.postscript_length);437 (void) WriteBlobLSBLong(image,(unsigned int) ept_info.postscript_length); 434 438 (void) WriteBlobLSBLong(image,0); 435 439 (void) WriteBlobLSBLong(image,0); 436 (void) WriteBlobLSBLong(image,(unsigned long) ept_info.postscript_length+30);437 (void) WriteBlobLSBLong(image,(unsigned long) ept_info.tiff_length);440 (void) WriteBlobLSBLong(image,(unsigned int) ept_info.postscript_length+30); 441 (void) WriteBlobLSBLong(image,(unsigned int) ept_info.tiff_length); 438 442 (void) WriteBlobLSBShort(image,0xffff); 439 443 (void) WriteBlob(image,ept_info.postscript_length,ept_info.postscript);
