Display image in 25D 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 image in 25D 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 image in 25D view 
## Required files: Multichannel_Timelapse_z_stack.czi
##
## LOAD IMAGE, DISPLAY IMAGE IN 2.5D VIEW
## 
#######################################################
##
##
## Remove all open documents
Zen.Application.Documents.RemoveAll()
##
## Load image
image = Zen.Application.LoadImage("C:\\OAD\\Input\\CZI Images\\Multichannel_Timelapse_z_stack.czi",False)
Zen.Application.Documents.Add(image)
## Switch to 2.5 D View
imageViews = Zen.Application.DocumentViews.Find(image)
imageViews.ActiveViewType = ZenDocumentView.Image25D
##
#######################################################
Post Reply