Gif89a format supports multiple frames. The disposal method for each
frame indicates in which way the graphic is to be treated after being
As per the gif89a specifications, for disposal method = 2, the area
used by the graphic must be restored to the background color.
Is it logically correct to create gif images that has the same
background color and transparency color and set the disposal method to
2? What should be done in this scenario?
I created a gif image with two frames. The part of the frames that was
supposed to be transparent was set to black color. The background
color was also set to be black.
Assume that before displaying the image, the complete screen is filled
with white color.
When i draw the first frame, the part of the frame that has black
pixels are not displayed on the screen (since the transparency color
is black). Hence, only the non-transparent area of the image is
visible on the screen. The rest of the screen appears white.
Then, i set the complete image area as black (since black is the
background color). Hence the complete area of the image appears black
on the screen.
Now, when i start drawing the second frame, the transparent area of
the image appears black (since black was already displayed as
However, if i open this image in some image viewer (i tried it in
IE5.0), the transparent area of the second frame is white in color
(instead of black). Hence the question