• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/ico/

Lines Matching refs:ih

210 static void printImgInfo (ICOHEADER *th, INFOHEADER *ih, FMTOPT *opts,
224 sprintf(str, " Width and Height: %dx%d\n", ih->width, ih->height/2); OUT;
226 sprintf(str, " Number of planes: %d\n", ih->nPlanes); OUT;
227 sprintf(str, " Bits per pixel: %d\n", ih->nBitsPerPixel); OUT;
324 static Boln readInfoHeader (tkimg_MFile *handle, INFOHEADER *ih)
326 if (!readUInt (handle, &ih->size) ||
327 !readUInt (handle, &ih->width) ||
328 !readUInt (handle, &ih->height) ||
329 !readUShort (handle, &ih->nPlanes) ||
330 !readUShort (handle, &ih->nBitsPerPixel) ||
331 !readUInt (handle, &ih->compression) ||
332 !readUInt (handle, &ih->imageSize) ||
333 !readUInt (handle, &ih->xPixelsPerM) ||
334 !readUInt (handle, &ih->yPixelsPerM) ||
335 !readUInt (handle, &ih->nColorsUsed) ||
336 !readUInt (handle, &ih->nColorsImportant)) {
341 printf("Size: %d\n", ih->size);
342 printf("Width: %d\n", ih->width);
343 printf("Height: %d\n", ih->height);
344 printf("Planes: %d\n", ih->nPlanes);
345 printf("BitsPerPixel: %d\n", ih->nBitsPerPixel);
346 printf("Compression: %d\n", ih->compression);
347 printf("Image size: %d\n", ih->imageSize);
348 printf("XPixelsPerM: %d\n", ih->xPixelsPerM);
349 printf("YPixelsPerM: %d\n", ih->yPixelsPerM);
350 printf("ColorsUsed: %d\n", ih->nColorsUsed);
351 printf("ColorsImportant: %d\n", ih->nColorsImportant);
356 static Boln writeInfoHeader (tkimg_MFile *handle, INFOHEADER *ih)
358 if (!writeUInt (handle, ih->size) ||
359 !writeUInt (handle, ih->width) ||
360 !writeUInt (handle, ih->height) ||
361 !writeUShort (handle, ih->nPlanes) ||
362 !writeUShort (handle, ih->nBitsPerPixel) ||
363 !writeUInt (handle, ih->compression) ||
364 !writeUInt (handle, ih->imageSize) ||
365 !writeUInt (handle, ih->xPixelsPerM) ||
366 !writeUInt (handle, ih->yPixelsPerM) ||
367 !writeUInt (handle, ih->nColorsUsed) ||
368 !writeUInt (handle, ih->nColorsImportant)) {
373 printf("Size : %d\n", ih->size);
374 printf("Width : %d\n", ih->width);
375 printf("Height : %d\n", ih->height);
376 printf("Planes : %d\n", ih->nPlanes);
377 printf("BitsPerPixel: %d\n", ih->nBitsPerPixel);
378 printf("Compression : %d\n", ih->compression);
379 printf("Image size : %d\n", ih->imageSize);
380 printf("XPixelsPerM : %d\n", ih->xPixelsPerM);
381 printf("YPixelsPerM : %d\n", ih->yPixelsPerM);
382 printf("ColorsUsed : %d\n", ih->nColorsUsed);
383 printf("ColorsImport: %d\n", ih->nColorsImportant);