Modify

Opened 13 years ago

Closed 12 years ago

#2461 closed Bug (Fixed)

GUICtrlSetImage doesn't handle certain types of .gif file

Reported by: kev51773 Owned by: Jon
Milestone: 3.3.9.22 Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: GUICtrlSetImage gif Cc:

Description

Using the attached files, try the following script.

GUICreate("test")
$pic = GUICtrlCreatePic("C:\blah\White.gif",0,0)
GUISetState()
sleep(1000)
GUICtrlSetImage($pic,"C:\blah\Blue.gif")
sleep(1000)
exit

A white image will be displayed, a second later it will be replaced by a blue image.

Now try the following (switching the order of the images)

GUICreate("test")
$pic = GUICtrlCreatePic("C:\blah\Blue.gif",0,0)
GUISetState()
sleep(1000)
GUICtrlSetImage($pic,"C:\blah\White.gif")
sleep(1000)
exit

A blue image will be displayed, the white image will never appear.

This doesn't happen with 8 bit gif images but seems to happen with anything less than 8 bit.
Also, it doesn't only happen with white, it happens with any colour where the values for R G & B are all greater than 0.

Attachments (2)

White.gif (62 bytes ) - added by anonymous 13 years ago.
Blue.gif (62 bytes ) - added by anonymous 13 years ago.

Download all attachments as: .zip

Change History (4)

by anonymous, 13 years ago

Attachment: White.gif added

by anonymous, 13 years ago

Attachment: Blue.gif added

comment:1 by J-Paul Mesnage, 13 years ago

The problem is not related with gif format but just a refresh problem

comment:2 by Jon, 12 years ago

Milestone: 3.3.9.22
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [9052] in version: 3.3.9.22

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.