This is a reference to a portal object. Use ENVIView::CreatePortal to create an ENVIPortal object.

Example


; Launch the application
e = ENVI()
 
; Create an ENVIRaster
file = FILEPATH('qb_boulder_msi', ROOT_DIR=e.ROOT_DIR, $
  SUBDIRECTORY = ['data'])
raster = e.OpenRaster(file)
 
; Create two layers
view = e.GetView()
layer1 = view.CreateLayer(raster)
layer2 = view.CreateLayer(raster, /CIR)
 
; Create a portal
portal = view.CreatePortal()

Methods


Animate

Close

Properties


Properties marked as (Get) can be retrieved, but not set.

HIDE

Set this property to 1 to hide the portal, and to 0 to display the portal. The default value is 0.

LOCATION

Set this property to an array ([x, y]) containing the display coordinates where the top-left corner of the portal will reside within the view. Coordinate [0,0] is the top-left corner of the display. By default, the top-left corner of the portal will be located in the center of the display.

PIN

Set this property to 1 to pin the portal to the display, so that it stays in the same location when you pan the image. Set this property to 0 to unpin the portal from the display. The default value is 0.

SIZE

Set this property to an array ([width, height]) with the size of the portal in pixels. The minimum portal size is 50 x 50 pixels.

Version History


ENVI 5

Introduced

API Version


4.3

See Also


ENVIView::CreatePortal