[Done] PBv6.30b2 - ‘#PB_Image_Transparent’ does not work

Post bugreports for the Linux version here
PeDe
Enthusiast
Enthusiast
Posts: 298
Joined: Sun Nov 26, 2017 3:13 pm

[Done] PBv6.30b2 - ‘#PB_Image_Transparent’ does not work

Post by PeDe »

PB v6.30b2 x64, Linux Mint v22.2

The transparent background is light blue with the constant ‘#PB_Image_Transparent’.

Peter

Code: Select all

  If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    CanvasGadget(0, 0, 0, 400, 200)

	CreateImage(1, 400, 200, 32, #PB_Image_Transparent) ; Light blue background!
	;CreateImage(1, 400, 200, 32, #PB_Image_TransparentBlack) ; OK
	
    If StartVectorDrawing(ImageVectorOutput(1))

      ; partial circle
      AddPathCircle(100, 100, 75, 0, 235)
      
      ; partial circle with lines to the center
      MovePathCursor(300, 100)
      AddPathCircle(300, 100, 75, 0, 235, #PB_Path_Connected)
      ClosePath()
      
      VectorSourceColor(RGBA(255, 0, 0, 255))
      StrokePath(10)
    
      StopVectorDrawing()
    EndIf
    
    SetGadgetAttribute(0, #PB_Canvas_Image, ImageID(1))
    
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf
Fred
Administrator
Administrator
Posts: 18301
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PBv6.30b2 - ‘#PB_Image_Transparent’ does not work

Post by Fred »

Fixed.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 197
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: [Done] PBv6.30b2 - ‘#PB_Image_Transparent’ does not work

Post by moulder61 »

Still the same on my system. Void Linux using XFWM.

Image

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Post Reply