Lines Matching refs:width

147     int	width, height;		/* Dimensions of image. */
200 int width, height; /* Dimensions of the pixmap. */
276 int imageX, int imageY, int width, int height,
317 {TK_CONFIG_INT, "-width", (char *) NULL, (char *) NULL,
363 int width, int height));
385 int x, int y, int width, int height));
387 int x, int y, int width, int height));
537 int x, y, width, height;
638 if ((options.fromX2 > block.width) || (options.fromY2 > block.height)
639 || (options.fromX2 > block.width)
651 options.fromX2 = block.width;
655 width = options.fromX2 - options.fromX;
657 width = (width + options.subsampleX - 1) / options.subsampleX;
659 width = 0;
661 width = (width - options.subsampleX - 1) / -options.subsampleX;
663 options.toX2 = options.toX + width * options.zoomX;
692 block.width = options.fromX2 - options.fromX;
713 if ((x < 0) || (x >= masterPtr->width)
724 pixelPtr = masterPtr->pix24 + (y * masterPtr->width + x) * 3;
808 block.width = dataWidth;
877 width = imageWidth - options.fromX;
880 width = options.fromX2 - options.fromX;
889 ImgPhotoSetSize(masterPtr, options.toX + width,
900 options.toY, width, height, options.fromX, options.fromY);
917 Dither(masterPtr, x, y, masterPtr->width - x, 1);
921 Dither(masterPtr, 0, masterPtr->ditherY, masterPtr->width,
931 (masterPtr->width - x), (masterPtr->height - y),
932 masterPtr->width, masterPtr->height);
959 if ((options.fromX > masterPtr->width)
961 || (options.fromX2 > masterPtr->width)
973 options.fromX2 = masterPtr->width;
1016 block.width = options.fromX2 - options.fromX;
1335 ImgPhotoSetSize(masterPtr, masterPtr->width, masterPtr->height);
1423 Tk_ImageChanged(masterPtr->tkMaster, 0, 0, masterPtr->width,
1424 masterPtr->height, masterPtr->width, masterPtr->height);
1544 * If the user has specified a width and/or height for the master
1545 * which is different from our current width/height, set the size
1552 || (instancePtr->width != masterPtr->width)
1564 if ((validBox.width > 0) && (validBox.height > 0)) {
1566 validBox.width, validBox.height);
1677 instancePtr->width = 0;
1761 masterPtr->width, masterPtr->height);
1769 if ((validBox.width > 0) && (validBox.height > 0)) {
1770 DitherInstance(instancePtr, validBox.x, validBox.y, validBox.width,
1795 ImgPhotoDisplay(clientData, display, drawable, imageX, imageY, width,
1803 int width, height; /* Dimensions of region within image to draw. */
1829 imageX, imageY, (unsigned) width, (unsigned) height,
1971 * image's size to `width' x `height' pixels.
1983 ImgPhotoSetSize(masterPtr, width, height)
1985 int width, height;
1995 width = masterPtr->userWidth;
2007 if ((validBox.x + validBox.width > (unsigned) width)
2011 clipBox.width = width;
2021 if ((width != masterPtr->width) || (height != masterPtr->height)
2029 pitch = width * 3;
2039 && ((width == masterPtr->width) || (width == validBox.width))) {
2059 if (width == masterPtr->width) {
2070 } else if ((validBox.width > 0) && (validBox.height > 0)) {
2076 destPtr = newPix24 + (validBox.y * width + validBox.x) * 3;
2077 srcPtr = masterPtr->pix24 + (validBox.y * masterPtr->width
2081 (size_t) (validBox.width * 3));
2082 destPtr += width * 3;
2083 srcPtr += masterPtr->width * 3;
2091 masterPtr->width = width;
2102 } else if (validBox.width == width) {
2109 || ((int) validBox.width < masterPtr->ditherX)) {
2110 masterPtr->ditherX = validBox.width;
2134 * image's size to `width' x `height' pixels.
2160 if ((instancePtr->width != masterPtr->width)
2166 (masterPtr->width > 0) ? masterPtr->width: 1,
2187 validBox.width, validBox.height, validBox.x, validBox.y);
2193 if ((instancePtr->width != masterPtr->width)
2198 (masterPtr->height * masterPtr->width * 3 * sizeof(schar)));
2206 && ((instancePtr->width == masterPtr->width)
2207 || (validBox.width == masterPtr->width))) {
2210 (validBox.y * masterPtr->width * 3 * sizeof(schar)));
2214 memset((VOID *) (newError + h * masterPtr->width * 3), 0,
2216 * masterPtr->width * 3 * sizeof(schar)));
2220 (masterPtr->height * masterPtr->width * 3 * sizeof(schar)));
2230 if (masterPtr->width == instancePtr->width) {
2232 offset = validBox.y * masterPtr->width * 3;
2236 * masterPtr->width * 3 * sizeof(schar)));
2238 } else if (validBox.width > 0 && validBox.height > 0) {
2241 + (validBox.y * masterPtr->width + validBox.x) * 3;
2243 + (validBox.y * instancePtr->width + validBox.x) * 3;
2246 validBox.width * 3 * sizeof(schar));
2247 errDestPtr += masterPtr->width * 3;
2248 errSrcPtr += instancePtr->width * 3;
2257 instancePtr->width = masterPtr->width;
3011 * *imageFormatPtr, and the width and height of the image are
3102 * *imageFormatPtr, and the width and height of the image are
3223 Tk_PhotoPutBlock(handle, blockPtr, x, y, width, height)
3231 int width, height; /* Dimensions of the area of the image
3246 if ((masterPtr->userWidth != 0) && ((x + width) > masterPtr->userWidth)) {
3247 width = masterPtr->userWidth - x;
3253 if ((width <= 0) || (height <= 0))
3256 xEnd = x + width;
3258 if ((xEnd > masterPtr->width) || (yEnd > masterPtr->height)) {
3259 ImgPhotoSetSize(masterPtr, MAX(xEnd, masterPtr->width),
3288 destLinePtr = masterPtr->pix24 + (y * masterPtr->width + x) * 3;
3289 pitch = masterPtr->width * 3;
3292 && (width <= blockPtr->width) && (height <= blockPtr->height)
3293 && ((height == 1) || ((x == 0) && (width == masterPtr->width)
3297 (size_t) (height * width * 3));
3305 for (wLeft = width; wLeft > 0;) {
3306 wCopy = MIN(wLeft, blockPtr->width);
3328 rect.width = width;
3337 Dither(masterPtr, x, y, width, height);
3343 Tk_ImageChanged(masterPtr->tkMaster, x, y, width, height, masterPtr->width,
3367 Tk_PhotoPutZoomedBlock(handle, blockPtr, x, y, width, height, zoomX, zoomY,
3376 int width, height; /* Dimensions of the area of the image
3396 Tk_PhotoPutBlock(handle, blockPtr, x, y, width, height);
3404 if ((masterPtr->userWidth != 0) && ((x + width) > masterPtr->userWidth)) {
3405 width = masterPtr->userWidth - x;
3411 if ((width <= 0) || (height <= 0))
3414 xEnd = x + width;
3416 if ((xEnd > masterPtr->width) || (yEnd > masterPtr->height)) {
3418 ImgPhotoSetSize(masterPtr, MAX(xEnd, masterPtr->width),
3454 blockWid = ((blockPtr->width + subsampleX - 1) / subsampleX) * zoomX;
3456 blockWid = width;
3458 blockWid = ((blockPtr->width - subsampleX - 1) / -subsampleX) * zoomX;
3470 destLinePtr = masterPtr->pix24 + (y * masterPtr->width + x) * 3;
3473 srcOrigPtr += (blockPtr->width - 1) * blockPtr->pixelSize;
3479 pitch = masterPtr->width * 3;
3487 for (wLeft = width; wLeft > 0;) {
3515 rect.width = width;
3524 Dither(masterPtr, x, y, width, height);
3530 Tk_ImageChanged(masterPtr->tkMaster, x, y, width, height, masterPtr->width,
3555 Dither(masterPtr, x, y, width, height)
3560 int width, height; /* Dimensions of the area to be dithered. */
3564 if ((width <= 0) || (height <= 0)) {
3570 DitherInstance(instancePtr, x, y, width, height);
3588 if ((x == 0) && (width == masterPtr->width)) {
3590 * We are doing the full width, therefore the dithering
3604 masterPtr->ditherX = x + width;
3605 if (masterPtr->ditherX >= masterPtr->width) {
3634 DitherInstance(instancePtr, xStart, yStart, width, height)
3638 int width, height; /* Dimensions of the block to be dithered. */
3681 nLines = (MAX_PIXELS + width - 1) / width;
3694 bytesPerLine = ((bitsPerPixel * width + 31) >> 3) & ~3;
3695 imagePtr->width = width;
3702 lineLength = masterPtr->width * 3;
3705 xEnd = xStart + width;
3754 if ((x + 1) < masterPtr->width) {
3825 if (x + 1 < masterPtr->width) {
3887 if (x + 1 < masterPtr->width) {
3929 (unsigned) width, (unsigned) nLines);
3982 (size_t) (masterPtr->width * masterPtr->height));
3986 (size_t) (masterPtr->width * masterPtr->height
3994 Tk_ImageChanged(masterPtr->tkMaster, 0, 0, masterPtr->width,
3995 masterPtr->height, masterPtr->width, masterPtr->height);
4005 * expanded if necessary to be at least `width' pixels wide and
4007 * image size (using the -width and -height configuration
4021 Tk_PhotoExpand(handle, width, height)
4023 int width, height; /* Desired minimum dimensions of the image. */
4029 if (width <= masterPtr->width) {
4030 width = masterPtr->width;
4035 if ((width != masterPtr->width) || (height != masterPtr->height)) {
4036 ImgPhotoSetSize(masterPtr, MAX(width, masterPtr->width),
4038 Tk_ImageChanged(masterPtr->tkMaster, 0, 0, 0, 0, masterPtr->width,
4053 * The image's width and height are returned in *widthp
4072 *widthPtr = masterPtr->width;
4083 * This call is equivalent to using the -width and -height
4097 Tk_PhotoSetSize(handle, width, height)
4100 int width, height; /* New dimensions for the image. */
4106 masterPtr->userWidth = width;
4108 ImgPhotoSetSize(masterPtr, ((width > 0) ? width: masterPtr->width),
4111 masterPtr->width, masterPtr->height);
4147 blockPtr->width = masterPtr->width;
4149 blockPtr->pitch = masterPtr->width * 3;