Visual Basic |
---|
Public Property InitialImageLocation As String |
The default value is a string of numbers "0,0". The string contains two numeric string values separated by a comma, separating the image coordinates where the image should be centered initially.
This property is used when the ImageScalingMethod is set to PV_ScalingMethod_FactorLocation (2) or PV_ScalingMethod_RatioLocation (4).
Set this property in the Object/Embed tag or during the OnInitialize event.
The scope of this property depends on where it is set. For more information, refer to the Initial Property Scope topic.
When this property is used, the values returned by ImageLocationCenterX and IamgeLocationCenterY may not contain the same value due to how the image is displayed in the image window. For example, if the image is fully visible in the window, setting InitialImageLocation to “0,0” would result in ImageLocationCenterX and ImageLocationCenterY containing values other than the values specified in this property, since the center of the image location would not be (0, 0).
PrizmControl Object | PrizmControl Members | OnInitialize Event | InitialImageScalingFactor Property | InitialImageScalingRatio Property | InitialImageRectangle Property | Initial Property Scope | ImageLocationCenterX Property | ImageLocationCenterY Property | SetImageLocation Method | ImageScalingMethod Property