Display multichannel image in split view

Find inspirations how to access the ZEN application model
Post Reply
user-4
Posts: 402
Joined: Thu Jan 01, 1970 1:00 am

Display multichannel image in split view

Post by user-4 »

Code: Select all

#######################################################
## Z E N  (B L U E )  A P P L I C A T I O N  
##
## Macro name: Display multichannel image in split view 
## Required files: Pinus sylvatica.czi
##
## LOAD 4 Channel IMAGE, DISPLAY SINGLE CHANNELS 
## AND ALL CHANNELS IN SPLIT VIEW 
## 
#######################################################
##
##
## Remove all open documents
Zen.Application.Documents.RemoveAll()
##
##
## Load image
image = Zen.Application.LoadImage("C:\\OAD\\Input\\ZVI Images\\Pinus sylvatica.zvi", False)
Zen.Application.Documents.Add(image)
##
## Switch to Split View
imageViews = Zen.Application.DocumentViews.Find(image)
imageViews.ActiveViewType = ZenDocumentView.ImageSplit
##
#######################################################
Post Reply