Lines Matching refs:icon_file

244     icon_file;  in ReadICONImage()  local
295 icon_file.reserved=(short) ReadBlobLSBShort(image); in ReadICONImage()
296 icon_file.resource_type=(short) ReadBlobLSBShort(image); in ReadICONImage()
297 icon_file.count=(short) ReadBlobLSBShort(image); in ReadICONImage()
298 if ((icon_file.reserved != 0) || in ReadICONImage()
299 ((icon_file.resource_type != 1) && (icon_file.resource_type != 2)) || in ReadICONImage()
300 (icon_file.count > MaxIcons)) in ReadICONImage()
303 for (i=0; i < icon_file.count; i++) in ReadICONImage()
305 icon_file.directory[i].width=(unsigned char) ReadBlobByte(image); in ReadICONImage()
306 icon_file.directory[i].height=(unsigned char) ReadBlobByte(image); in ReadICONImage()
307 icon_file.directory[i].colors=(unsigned char) ReadBlobByte(image); in ReadICONImage()
308 icon_file.directory[i].reserved=(unsigned char) ReadBlobByte(image); in ReadICONImage()
309 icon_file.directory[i].planes=(unsigned short) ReadBlobLSBShort(image); in ReadICONImage()
310 icon_file.directory[i].bits_per_pixel=(unsigned short) in ReadICONImage()
312 icon_file.directory[i].size=ReadBlobLSBLong(image); in ReadICONImage()
313 icon_file.directory[i].offset=ReadBlobLSBLong(image); in ReadICONImage()
316 extent=MagickMax(extent,icon_file.directory[i].size); in ReadICONImage()
321 for (i=0; i < icon_file.count; i++) in ReadICONImage()
327 icon_file.directory[i].offset,SEEK_SET); in ReadICONImage()
359 length=icon_file.directory[i].size; in ReadICONImage()
401 image->columns=(size_t) icon_file.directory[i].width; in ReadICONImage()
406 image->rows=(size_t) icon_file.directory[i].height; in ReadICONImage()
421 " width = %.20g",(double) icon_file.directory[i].width); in ReadICONImage()
423 " height = %.20g",(double) icon_file.directory[i].height); in ReadICONImage()
733 if (i < (ssize_t) (icon_file.count-1)) in ReadICONImage()
874 icon_file; in WriteICONImage() local
950 (void) memset(&icon_file,0,sizeof(icon_file)); in WriteICONImage()
956 (void) WriteBlobByte(image,icon_file.directory[scene].width); in WriteICONImage()
957 (void) WriteBlobByte(image,icon_file.directory[scene].height); in WriteICONImage()
958 (void) WriteBlobByte(image,icon_file.directory[scene].colors); in WriteICONImage()
959 (void) WriteBlobByte(image,icon_file.directory[scene].reserved); in WriteICONImage()
960 (void) WriteBlobLSBShort(image,icon_file.directory[scene].planes); in WriteICONImage()
961 (void) WriteBlobLSBShort(image,icon_file.directory[scene].bits_per_pixel); in WriteICONImage()
963 icon_file.directory[scene].size); in WriteICONImage()
965 icon_file.directory[scene].offset); in WriteICONImage()
1015 icon_file.directory[scene].width=0; in WriteICONImage()
1016 icon_file.directory[scene].height=0; in WriteICONImage()
1017 icon_file.directory[scene].colors=0; in WriteICONImage()
1018 icon_file.directory[scene].reserved=0; in WriteICONImage()
1019 icon_file.directory[scene].planes=1; in WriteICONImage()
1020 icon_file.directory[scene].bits_per_pixel=32; in WriteICONImage()
1021 icon_file.directory[scene].size=(size_t) length; in WriteICONImage()
1022 icon_file.directory[scene].offset=(size_t) TellBlob(image); in WriteICONImage()
1269 icon_file.directory[scene].width=(unsigned char) icon_info.width; in WriteICONImage()
1270 icon_file.directory[scene].height=(unsigned char) icon_info.height; in WriteICONImage()
1271 icon_file.directory[scene].colors=(unsigned char) in WriteICONImage()
1273 icon_file.directory[scene].reserved=0; in WriteICONImage()
1274 icon_file.directory[scene].planes=icon_info.planes; in WriteICONImage()
1275 icon_file.directory[scene].bits_per_pixel=icon_info.bits_per_pixel; in WriteICONImage()
1276 icon_file.directory[scene].size=icon_info.size; in WriteICONImage()
1277 icon_file.directory[scene].offset=(size_t) TellBlob(image); in WriteICONImage()
1379 (void) WriteBlobByte(image,icon_file.directory[scene].width); in WriteICONImage()
1380 (void) WriteBlobByte(image,icon_file.directory[scene].height); in WriteICONImage()
1381 (void) WriteBlobByte(image,icon_file.directory[scene].colors); in WriteICONImage()
1382 (void) WriteBlobByte(image,icon_file.directory[scene].reserved); in WriteICONImage()
1383 (void) WriteBlobLSBShort(image,icon_file.directory[scene].planes); in WriteICONImage()
1384 (void) WriteBlobLSBShort(image,icon_file.directory[scene].bits_per_pixel); in WriteICONImage()
1386 icon_file.directory[scene].size); in WriteICONImage()
1388 icon_file.directory[scene].offset); in WriteICONImage()