Sizing the signature button and scaling the imageAdded by IBM on August 8, 2013 | Version 1 (Original)
|Silanis signatures display an image rather than text on the signature button. This allows the Silanis software to show a graphic of the user's handwritten signature once the form is signed.
In most cases, this image is larger than the standard button size for a digital signature. To account for this, you should:
To make the signature button larger, use the extent setting in the itemlocation option to change its height. You may want to experiment to determine the appropriate size.
To ensure that the image fits within the button, you should also set the imagemode option to scale. This will resize the image (either by shrinking it or enlarging it) to a best fit within the button, and will maintain the original aspect ratio.
The following code creates a button that is 300 pixels wide and 150 pixels tall, and that scales the image to fit the button.
- Make the signature button larger than normal.
- Use the imagemode option to scale the image to the correct size.