15 lines
355 B
C
15 lines
355 B
C
#include <stdio.h>
|
|
#include "tinyfiledialogs/tinyfiledialogs.h"
|
|
|
|
int main () {
|
|
char const * imageFilterPatterns[2] = {"*.png", "*.jpg"};
|
|
char* filename = tinyfd_openFileDialog("Please select an image",
|
|
"",
|
|
2,
|
|
imageFilterPatterns,
|
|
"Image Files",
|
|
0);
|
|
|
|
printf("%s\n", filename);
|
|
}
|