Tile images macro
I'm trying to tile images (500-600 image Tiff files), and I'm finding that the macro does not load the images properly when I freshly open a file. It works fine when I've just taken the images, but not if I re-open the Tiff. It seems to be something with the IpTileAdd line, but I can't find much in the help section on it. Suggestions please?
ret = IpTileSetInt(TILE_UPDATEUI, 0, 0)
ret = IpTileAdd(1, 0)
ret = IpTileSetInt(TILE_UPDATEUI, 0, 1)
Thanks.
0
Answers
-
I suspect the issue is due to using a fixed image ID in IpTileAdd( ). If the loaded image is not ID 1 (which would be the second image created, using Image-Pro's 0-based indexing) your code would fail.If the active image is the one you are trying to tile, I would suggest:ret = IpTileAdd( IpDocActive( ), 0 )0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions