ChangeImage(String,AspectRatio) Method
Replaces the current image with a different image.
'Declaration
Overloads Sub ChangeImage( _
ByVal As String, _
Optional ByVal As AspectRatio _
)
'Usage
Dim instance As IPicture
Dim fileName As String
Dim aspect As AspectRatio
instance.ChangeImage(fileName, aspect)
Parameters
- fileName
- The path to the new image.
- aspect
- Specifies how to resize the new image. If omitted, the original height is kept.