Skip to content

Commit

Permalink
fixed extCMake examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed May 8, 2024
1 parent 64c5e61 commit 60b1a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace std;


int main() {
TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, TinyTIFFWriter_Greyscale);
TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, 1, 32, 32, TinyTIFFWriter_Greyscale);
if (tif) {
uint8_t* data=(uint8_t*)calloc(32*32,sizeof(uint8_t));
TinyTIFFWriter_writeImage(tif, data);
Expand Down
2 changes: 1 addition & 1 deletion tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace std;


int main() {
TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, TinyTIFFWriter_Greyscale);
TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, 1, 32, 32, TinyTIFFWriter_Greyscale);
if (tif) {
uint8_t* data=(uint8_t*)calloc(32*32,sizeof(uint8_t));
TinyTIFFWriter_writeImage(tif, data);
Expand Down

0 comments on commit 60b1a3c

Please sign in to comment.