Lines Matching refs:options

215     int options;		/* Individual bits indicate which
216 * options were specified - see below. */
231 * photo image subcommand. On return, the bit is set in the options
458 char **argv; /* Argument strings for options (doesn't
486 * Process configuration options given in the image create command.
539 struct SubcommandOptions options;
606 * photo copy command - first parse options.
610 memset((VOID *) &options, 0, sizeof(options));
611 options.zoomX = options.zoomY = 1;
612 options.subsampleX = options.subsampleY = 1;
613 options.name = NULL;
614 if (ParseSubcommandOptions(&options, interp,
619 if (options.name == NULL || index < argc) {
632 if ((srcHandle = Tk_FindPhoto(options.name)) == NULL) {
638 if ((options.fromX2 > block.width) || (options.fromY2 > block.height)
639 || (options.fromX2 > block.width)
640 || (options.fromY2 > block.height)) {
650 if (((options.options & OPT_FROM) == 0) || (options.fromX2 < 0)) {
651 options.fromX2 = block.width;
652 options.fromY2 = block.height;
654 if (((options.options & OPT_TO) == 0) || (options.toX2 < 0)) {
655 width = options.fromX2 - options.fromX;
656 if (options.subsampleX > 0) {
657 width = (width + options.subsampleX - 1) / options.subsampleX;
658 } else if (options.subsampleX == 0) {
661 width = (width - options.subsampleX - 1) / -options.subsampleX;
663 options.toX2 = options.toX + width * options.zoomX;
665 height = options.fromY2 - options.fromY;
666 if (options.subsampleY > 0) {
667 height = (height + options.subsampleY - 1)
668 / options.subsampleY;
669 } else if (options.subsampleY == 0) {
672 height = (height - options.subsampleY - 1)
673 / -options.subsampleY;
675 options.toY2 = options.toY + height * options.zoomY;
682 if (options.options & OPT_SHRINK) {
683 ImgPhotoSetSize(masterPtr, options.toX2, options.toY2);
690 block.pixelPtr += options.fromX * block.pixelSize
691 + options.fromY * block.pitch;
692 block.width = options.fromX2 - options.fromX;
693 block.height = options.fromY2 - options.fromY;
695 options.toX, options.toY, options.toX2 - options.toX,
696 options.toY2 - options.toY, options.zoomX, options.zoomY,
697 options.subsampleX, options.subsampleY);
730 * photo put command - first parse the options and colors specified.
734 memset((VOID *) &options, 0, sizeof(options));
735 options.name = NULL;
736 if (ParseSubcommandOptions(&options, interp, OPT_TO,
740 if ((options.name == NULL) || (index < argc)) {
746 if (Tcl_SplitList(interp, options.name, &dataHeight, &srcArgv)
804 if (((options.options & OPT_TO) == 0) || (options.toX2 < 0)) {
805 options.toX2 = options.toX + dataWidth;
806 options.toY2 = options.toY + dataHeight;
816 options.toX, options.toY, options.toX2 - options.toX,
817 options.toY2 - options.toY);
822 * photo read command - first parse the options specified.
826 memset((VOID *) &options, 0, sizeof(options));
827 options.name = NULL;
828 options.format = NULL;
829 if (ParseSubcommandOptions(&options, interp,
834 if ((options.name == NULL) || (index < argc)) {
846 realFileName = Tcl_TranslateFileName(interp, options.name, &buffer);
854 options.name, "\": ", Tcl_PosixError(interp),
858 if (MatchFileFormat(interp, f, options.name, options.format,
868 if ((options.fromX > imageWidth) || (options.fromY > imageHeight)
869 || (options.fromX2 > imageWidth)
870 || (options.fromY2 > imageHeight)) {
876 if (((options.options & OPT_FROM) == 0) || (options.fromX2 < 0)) {
877 width = imageWidth - options.fromX;
878 height = imageHeight - options.fromY;
880 width = options.fromX2 - options.fromX;
881 height = options.fromY2 - options.fromY;
888 if (options.options & OPT_SHRINK) {
889 ImgPhotoSetSize(masterPtr, options.toX + width,
890 options.toY + height);
898 result = (*imageFormat->fileReadProc)(interp, f, options.name,
899 options.format, (Tk_PhotoHandle) masterPtr, options.toX,
900 options.toY, width, height, options.fromX, options.fromY);
942 * photo write command - first parse and check any options given.
946 memset((VOID *) &options, 0, sizeof(options));
947 options.name = NULL;
948 options.format = NULL;
949 if (ParseSubcommandOptions(&options, interp, OPT_FORMAT | OPT_FROM,
953 if ((options.name == NULL) || (index < argc)) {
959 if ((options.fromX > masterPtr->width)
960 || (options.fromY > masterPtr->height)
961 || (options.fromX2 > masterPtr->width)
962 || (options.fromY2 > masterPtr->height)) {
972 if (((options.options & OPT_FROM) == 0) || (options.fromX2 < 0)) {
973 options.fromX2 = masterPtr->width;
974 options.fromY2 = masterPtr->height;
985 if ((options.format == NULL)
986 || (strncasecmp(options.format, imageFormat->name,
995 if (options.format == NULL) {
1000 options.format, "\" is unknown", (char *) NULL);
1003 options.format, "\" has no file writing capability",
1015 block.pixelPtr += options.fromY * block.pitch + options.fromX * 3;
1016 block.width = options.fromX2 - options.fromX;
1017 block.height = options.fromY2 - options.fromY;
1018 return (*imageFormat->fileWriteProc)(interp, options.name,
1019 options.format, &block);
1036 * This procedure is invoked to process one of the options
1052 /* Information about the options specified
1055 int allowedOptions; /* Indicates which options are valid for
1129 * For the -from, -to, -zoom and -subsample options,
1247 optPtr->options |= bit;
1260 * reconfigured. It processes configuration options and resets
1269 * the new configuration options.
1280 char **argv; /* Pairs of configuration options for image. */
1304 * Process the configuration options specified.
1750 * Set configuration options and finish the initialization of the instance.
4008 * options) then this call has no effect.
4084 * configuration options.