This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** threshold2.c | |
* | |
* COMPILE | |
* | |
* gcc -Wall -o threshold2 threshold2.c `pkg-config vips --cflags --libs` | |
* | |
* EXAMPLE | |
* | |
* ./threshold2 128 in.png out.png | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** scale.c | |
* | |
* GTK3 example of how to use GtkScale (which inherits from GtkRange). | |
* | |
* COMPILE | |
* gcc -Wall -o scale scale.c `pkg-config --libs --cflags gtk+-3.0` | |
* | |
* EXAMPLE | |
* ./scale | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** threshold_scale.c | |
* | |
* Threshold an image with VIPS and a GTK slider UI. | |
* | |
* COMPILE | |
* | |
* gcc -Wall -o threshold_scale threshold_scale.c `pkg-config vips gtk+-3.0 --cflags --libs` | |
* | |
* EXAMPLE | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** file_chooser_native.c | |
* | |
* Open a native file chooser with GTK 3 if one is available. | |
* | |
* COMPILE | |
* gcc -Wall -o file_chooser_native file_chooser_native.c `pkg-config gtk+-3.0 --libs --cflags` | |
* | |
* EXAMPLE | |
* ./file_chooser_native | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** file_chooser_dialog.c | |
* | |
* Open a file chooser with GTK 3. | |
* | |
* COMPILE | |
* gcc -Wall -o file_chooser_dialog file_chooser_dialog.c `pkg-config gtk+-3.0 --libs --cflags` | |
* | |
* EXAMPLE | |
* ./file_chooser_dialog | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* copy.c | |
* | |
* Compile with: | |
* | |
* gcc copy.c -o copy -Wall -g | |
* | |
* Defines function copy: | |
* | |
* Copy a source file to a destination file. If the destination file already | |
* exists, this clobbers it. If the destination file does not exist, it is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** import_file.c | |
* | |
* Import a file to be used by threshold.c and friends. | |
* | |
* COMPILE | |
* gcc -Wall -o import_file import_file.c `pkg-config gtk+-3.0 --libs --cflags` | |
* | |
* EXAMPLE | |
* ./import_file source.png | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** example-0.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o example-0 example-0.c `pkg-config --libs gtk4` | |
* | |
* EXAMPLE | |
* | |
* ./example-0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** example-1.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o example-1 example-1.c `pkg-config --libs gtk4` | |
* | |
* EXAMPLE | |
* | |
* ./example-1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** example-2.c | |
* | |
* COMPILE | |
* | |
* gcc `pkg-config --cflags gtk4` -o example-2 example-2.c `pkg-config --libs gtk4` | |
* | |
* EXAMPLE | |
* | |
* ./example-2 | |
* |