Mercurial > octave-libtiff
annotate scripts/image/PKG_ADD @ 31193:c142c153034c
Tiff: implemented imwrite handler that uses the Tiff interface
* __tiff__.cc (F__tiff_imwrite__): implemented internal function to
act as imwrite handler for tiff images but uses the new Tiff interface.
author | magedrifaat <magedrifaat@gmail.com> |
---|---|
date | Sat, 27 Aug 2022 23:06:54 +0200 |
parents | 6a2bb6f4e41e |
children |
rev | line source |
---|---|
31188
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
1 if __have_feature__ ("TIFF") |
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
2 format = imformats("tif"); |
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
3 format.read = @__tiff_imread__; |
31193
c142c153034c
Tiff: implemented imwrite handler that uses the Tiff interface
magedrifaat <magedrifaat@gmail.com>
parents:
31192
diff
changeset
|
4 format.write = @__tiff_imwrite__; |
31188
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
5 format.info = @__tiff_imfinfo__; |
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
6 imformats("update", "tif", format); |
66cf3c7c06e8
scripts/image/PKG_ADD: corrected the file path.
magedrifaat <magedrifaat@gmail.com>
parents:
diff
changeset
|
7 endif |