Image Viewer CP ActiveX Control

PSDGetLayerTop

 

Return the top position of specific layer.
 

Public Function PSDGetLayerTop( _
   ByVal iIndex As Integer
) As Integer

 

Parameter
iIndex
the index of layer, the first layer is 0.

Return Value

Return the top position of specific layer

Example

   

Visual Basic Syntax
If ImageViewer1.PSDShowLayerImage(Me.List1.ListIndex) Then
txtleft.Text = ImageViewer1.PSDGetLayerLeft(List1.ListIndex)
txttop.Text = ImageViewer1.PSDGetLayerTop(List1.ListIndex)
txtwidth.Text = ImageViewer1.PSDGetLayerWidth(List1.ListIndex)
txtheight.Text = ImageViewer1.PSDGetLayerHeight(List1.ListIndex)
txtopacity.Text = ImageViewer1.PSDGetLayerOpacity(List1.ListIndex)
End If