Resize

The Resize method resizes content of target track to specified image size.

Resize Width,Height

Parameters

Width
Specifies new width of every image on the track.
Height
Specifies new height of every image on the track.


Note

Call this method after Join to resize gif animation to specified dimensions. Subsequent call the Play method will make a gif animation with specified dimensions.
This procedure performs smooth resizing of animated image, so halftones can appear. The gif format does not support semi-transparency and, therefore, it is recommended that you avoid usage of transparent background here (or set the background transparent color the most closely matching the color of real background where resized image will be shown). See SetBackgroundColor
Example
This code resizes gif animation:
Source imageResult

Set ani = CreateObject("ShotGraph.GifAnimator")
filename = "c:\images\resize1.gif"
ani.GetFileDimensions filename,width,height
ani.SetBackgroundColor "ffffff"
ani.Read filename
ani.Join
ani.Resize width/2,height/2
ani.Play "c:\images\resize.gif"