Createimage Spiderbasic 3.20

Found an issue in SpiderBasic ? Please report it here !
Stefan
Posts: 263
Joined: Mon Feb 05, 2018 9:44 pm

Createimage Spiderbasic 3.20

Post 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))
munfraid
Posts: 142
Joined: Sat Mar 24, 2018 1:33 pm

Re: Createimage Spiderbasic 3.20

Post by munfraid »

sorry
Last edited by munfraid on Mon Jan 19, 2026 7:06 pm, edited 1 time in total.
falsam
Posts: 292
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: Createimage Spiderbasic 3.20

Post 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))

➽ Windows 11 - jdk-17.0 - SB 3.20 - Android 16
https://falsam.com

Sorry for my poor english
Stefan
Posts: 263
Joined: Mon Feb 05, 2018 9:44 pm

Re: Createimage Spiderbasic 3.20

Post 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.
Fred
Site Admin
Posts: 1858
Joined: Mon Feb 24, 2014 10:51 am

Re: Createimage Spiderbasic 3.20

Post by Fred »

Yes, you need to use RGBA for 32 bit images, I will update the doc
Post Reply