Page 1 of 1

Createimage Spiderbasic 3.20

Posted: Sun Jan 18, 2026 8:31 am
by Stefan
This code works perfectly with SpiderBasic 3.10, but not with Spider320.
What's the reason for this?

Code: Select all

OpenWindow(1,0,0,800,600,"Image")

image=CreateImage(#PB_Any,200,200,32,RGB(200,0,0))
gadget=ImageGadget(#PB_Any,10,10,ImageWidth(image),ImageHeight(image),ImageID(image))

Re: Createimage Spiderbasic 3.20

Posted: Sun Jan 18, 2026 5:19 pm
by munfraid
sorry

Re: Createimage Spiderbasic 3.20

Posted: Sun Jan 18, 2026 7:24 pm
by falsam
Use RGBA (The documentation states that RGB works, but apparently it does not 😉)

Code: Select all

OpenWindow(1,0,0,800,600,"Image")

image=CreateImage(#PB_Any,200,200,32,RGBA(220,0,0,255))
gadget=ImageGadget(#PB_Any,10,10,ImageWidth(image),ImageHeight(image),ImageID(image))

Re: Createimage Spiderbasic 3.20

Posted: Mon Jan 19, 2026 8:45 am
by Stefan
Use RGBA (The documentation states that RGB works, but apparently it does not 😉)
That's very unfortunate, but thank you very much for the temporary solution.

Re: Createimage Spiderbasic 3.20

Posted: Tue Jan 20, 2026 10:20 am
by Fred
Yes, you need to use RGBA for 32 bit images, I will update the doc