CreateImage() 32bit white bug
Posted: Thu Oct 05, 2017 2:22 pm
Hi,
$FFFFFFFF (-1) as color results in a transparent image instead of a white one.
Win10 x64 with PB 5.61 x86
Bernd
$FFFFFFFF (-1) as color results in a transparent image instead of a white one.
Code: Select all
If OpenWindow(0, 0, 0, 900, 100, "DrawAddBorder", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CreateImage(0, 450, 100, 32, RGBA(255,255,255,255)) ; -> transparent
ImageGadget(0, 0, 0, 0, 0, ImageID(0))
CreateImage(1, 450, 100, 32, RGBA(255,255,255,254)) ; -> white
ImageGadget(1, 450, 0, 0, 0, ImageID(1))
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Bernd