SetBackgroundColor
The SetBackgroundColor method sets color for transparent background.
SetBackgroundColor
Color
Parameters
-
Color
-
Text string containing hexadecimal color value "RRGGBB".
Note
This method sets the color for transparent entry in the color table. Usually it is called before
creating of the first animation track. Add subsequently created tracks having transparency
will use this color to draw transparent areas.
This method is important if you are going to resize existing animation to new one keeping
transparency information.
To avoid a halo on the edges of transparent areas in the resized image you need to set
background color closely (or equal) to color of concrete background where the resized image will be
shown. For example, if you are going to show resize gif on the light blue background then
you can make a call like
SetBackgroundColor "bbbbff"
before first AddTrack or Read
Example
See the Resize method.