Search found 4 matches

by Jakala
Sun Dec 08, 2024 5:46 pm
Forum: Coding Questions
Topic: Hidden Structures
Replies: 1
Views: 405

Hidden Structures

Hi guys!

Attempted...


Structure Rect
Left.i
Top.i
Width.i
Height.i
EndStructure


Received "Line 1: Structure already declared: Rect (in resident file).
Is there a listing somewhere where can find PureBasic already defined structures or a program that can read .res files. Tried with Notepad ...
by Jakala
Sat Nov 30, 2024 10:25 pm
Forum: Coding Questions
Topic: CanvasGadget and/or ImageGadget transparent
Replies: 10
Views: 1564

Re: CanvasGadget and/or ImageGadget transparent

Hi guys and, again, thank you for all your help.

The problem was I was using a 24bit (#Blue), when what is needed is an Alpha (32bit) value


#Clear = 0

Procedure ColorRGBA(Clr.I, Alp.I)
Clr24.q = Clr
Clr32 = Clr24 | Alp << 24
ProcedureReturn clr32
EndProcedure

Procedure RoundBox_Draw(Left ...
by Jakala
Fri Nov 29, 2024 9:19 pm
Forum: Coding Questions
Topic: CanvasGadget and/or ImageGadget transparent
Replies: 10
Views: 1564

Re: CanvasGadget and/or ImageGadget transparent

Thank you all for attempting answer my query.
After opening a window and loading a background image I want to draw a separate image on it.

Wd = 6
Rnd = Height/2
Clear = RGBA(0,0,0,0)
If CreateImage(1, Width, Height)
If StartDrawing(ImageOutput(1))
DrawingMode(#PB_2DDrawing_Transparent) ;Tried ...
by Jakala
Sun Nov 24, 2024 4:11 am
Forum: Coding Questions
Topic: CanvasGadget and/or ImageGadget transparent
Replies: 10
Views: 1564

CanvasGadget and/or ImageGadget transparent

I am a PureBasic novice but experienced with various BASIC languages. Believe this should not be so hard to do.

Is there a way to draw a CanvasGadget with/without ImageGadget in which transparency can be achieved?

Thank you