ImageMan ActiveX Control Version 8
ScaleImage Method
See Also  Example  Send comments on this topic.
newWidth
Specifies the new image width in pixels.
newHeight
Specifies the new image height in pixels.

Glossary Item Box

Description

Scales the current image to the specified size.

Syntax

Visual Basic
Public Sub ScaleImage( _
   ByVal newWidth As Long, _
   ByVal newHeight As Long _
) 

Parameters

newWidth
Specifies the new image width in pixels.
newHeight
Specifies the new image height in pixels.

Example

(Visual Basic)Copy Code
' Load a big image and save a 100x100 thumbnail of it to another file
ImageControl1.Picture = "big.tif"

' Create the Thumbnail
ImageControl1.ScaleImage 100, 100

' Now save it
ImageControl1.SaveAs "thumb.tif"

See Also

© 2014 Data Techniques Inc. All Rights Reserved.