• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/bless-103/libbless/Misc/

Lines Matching refs:width

69         uint16_t width, uint16_t height, int scale, uint16_t *newwidth);
72 uint16_t width, uint16_t height, uint16_t newwidth);
78 uint16_t width = 340 * scale;
90 bitmapData = (unsigned char *)malloc(width*height+5);
96 bzero(bitmapData, width*height+5);
98 err = makeLabelOfSize(label, bitmapData+5, width, height, scale, &newwidth);
106 if (newwidth > width) newwidth = width;
108 contextprintf(context, kBLLogLevelVerbose, "Refitting to width %d\n", newwidth);
110 err = refitToWidth(bitmapData+5, width, height, newwidth);
154 uint16_t width = 340;
166 bitmapData = (unsigned char *)malloc(width*height+5);
172 bzero(bitmapData, width*height+5);
174 err = makeLabelOfSize(label, bitmapData+5, width, height, 1, &newwidth);
182 if(newwidth > width) newwidth = width;
184 contextprintf(context, kBLLogLevelVerbose, "Refitting to width %d\n", newwidth);
187 err = refitToWidth(bitmapData+5, width, height, newwidth);
232 uint16_t width, uint16_t height, int scale, uint16_t *newwidth) {
241 bitmapBytesPerRow = width*1;
248 width,
312 if(newwidth) { *newwidth = (int)rect.size.width + 4 * scale; }
313 // printf("[%f,%f] (%f,%f)\n", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
340 CGDataProviderRef dataProvider = CGDataProviderCreateWithData(NULL, bitmapData, height*width, NULL);
341 CGImageRef imageRef = CGImageCreate(width,height,8,8,bitmapBytesPerRow,colorSpace,0, dataProvider, NULL, 0, 0);
353 // write(1, bitmapData, height*width);
367 uint16_t width, uint16_t height, int scale, uint16_t *newwidth) {
382 uint16_t width, uint16_t height, uint16_t newwidth)
386 bcopy(&bitmapData[row*width], &bitmapData[row*newwidth], newwidth);