Image Viewer CP ActiveX Control

PSDGetLayerCount 

 

Return the total count of layer when you load the PSD file.

Public Function PSDGetLayerCount() As Integer

 

No Parameter

Return Value

Return the total count for layer

Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test.psd"
iCount = ImageViewer1.PSDGetLayerCount
For i = 0 To iCount - 1
List1.AddItem ImageViewer1.PSDGetLayerName(i)
Next