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

Lines Matching refs:handle

40 static int CommonMatch(tkimg_MFile *handle, int *widthPtr,
44 static int CommonRead(Tcl_Interp *interp, tkimg_MFile *handle,
48 static int CommonWrite(Tcl_Interp *interp, tkimg_MFile *handle,
51 static void putint(tkimg_MFile *handle, int i);
66 tkimg_MFile handle;
68 handle.data = (char *) chan;
69 handle.state = IMG_CHAN;
71 return CommonMatch(&handle, widthPtr, heightPtr,
83 tkimg_MFile handle;
85 if (!tkimg_ReadInit(data, 'B', &handle)) {
88 return CommonMatch(&handle, widthPtr, heightPtr,
104 tkimg_MFile handle;
106 handle.data = (char *) chan;
107 handle.state = IMG_CHAN;
109 return CommonRead(interp, &handle, imageHandle, destX, destY,
124 tkimg_MFile handle;
126 tkimg_ReadInit(data,'B',&handle);
127 return CommonRead(interp, &handle, imageHandle, destX, destY,
139 tkimg_MFile handle;
147 handle.data = (char *) chan;
148 handle.state = IMG_CHAN;
150 result = CommonWrite(interp, &handle, blockPtr);
162 tkimg_MFile handle;
167 tkimg_WriteInit(&data, &handle);
168 result = CommonWrite(interp, &handle, blockPtr);
169 tkimg_Putc(IMG_DONE, &handle);
225 CommonMatch(handle, widthPtr, heightPtr, colorMap, numBits, numCols, comp, mask)
226 tkimg_MFile *handle;
235 if ((tkimg_Read(handle, (char *) buf, 2) != 2)
237 || (tkimg_Read(handle, (char *) buf, 24) != 24)
247 if (tkimg_Read(handle, (char *) buf, 24) != 24) {
267 if (c > 36) tkimg_Read(handle, (char *) buf, c - 36);
270 tkimg_Read(handle, (char *) buf, 3*4);
286 tkimg_Read(handle, (char *) colbuf, 3+(c!=12));
293 tkimg_Read(handle, (char *) buf, 28);
295 if (offBits) tkimg_Read(handle, (char *) buf, offBits);
310 CommonRead(interp, handle, imageHandle, destX, destY,
313 tkimg_MFile *handle;
329 CommonMatch(handle, &fileWidth, &fileHeight, &colorMap, &numBits,
374 tkimg_Read(handle, (char *)line, bytesPerLine);
380 tkimg_Read(handle, (char *)line, bytesPerLine);
396 tkimg_Read(handle, (char *)line, bytesPerLine);
406 tkimg_Read(handle, (char *)line, bytesPerLine);
423 tkimg_Read(handle, (char *)line, bytesPerLine);
439 tkimg_Read(handle, (char *)line, bytesPerLine);
460 tkimg_Read(handle, (char *)line, bytesPerLine);
498 if (2 != tkimg_Read(handle, (char *)rleBuf, 2)) {
537 if (1 != tkimg_Read(handle, (char *)&val, 1)) {
548 if (1 != tkimg_Read(handle, (char *)&val, 1)) {
574 if (1 != tkimg_Read(handle, (char *)&val, 1)) {
595 if (2 != tkimg_Read(handle, (char *) rleDelta, 2)) {
633 CommonWrite(interp, handle, blockPtr)
635 tkimg_MFile *handle;
689 tkimg_Write(handle,"BM", 2);
690 putint(handle, 54 + (ncolors*4) + bperline * blockPtr->height);
691 putint(handle, 0);
692 putint(handle, 54 + (ncolors*4));
693 putint(handle, 40);
694 putint(handle, blockPtr->width);
695 putint(handle, blockPtr->height);
696 putint(handle, 1 + (nbytes<<19));
697 putint(handle, 0);
698 putint(handle, bperline * blockPtr->height);
699 putint(handle, 75*39);
700 putint(handle, 75*39);
701 putint(handle, ncolors);
702 putint(handle, ncolors);
705 putint(handle, colors[i]);
730 tkimg_Write(handle, (char *) buf, nbytes);
734 tkimg_Write(handle, "\0\0\0", bperline);
741 putint(handle, i)
742 tkimg_MFile *handle;
750 tkimg_Write(handle, (char *) buf, 4);