[Done] Alpha

Post bugreports for the Mac OSX version here
mestnyi
Addict
Addict
Posts: 995
Joined: Mon Nov 25, 2013 6:41 am

[Done] Alpha

Post by mestnyi »

PureBasic - 572-x64
MacOS - Catalina-10.15.7

Code: Select all

Global img = LoadImage( #PB_Any, #PB_Compiler_Home + "examples/sources/Data/Geebee2.bmp" ) 
Global hole = CreateImage( #PB_Any,100,100,32 )

If StartDrawing( ImageOutput( hole ) )
  DrawingMode( #PB_2DDrawing_AllChannels )
  Box( 0,0,OutputWidth(),OutputHeight(),RGBA( $00,$00,$00,$00 ) )
  Circle( 50,50,48,RGBA( $00,$FF,$FF,$FF ) )
  Circle( 50,50,30,RGBA( $00,$00,$00,$00 ) )
  StopDrawing( )
EndIf


If StartDrawing( ImageOutput( img ) )
  DrawingMode( #PB_2DDrawing_AllChannels )                 ; macos          ; linux & windows     
  Debug Alpha( Point( OutputWidth()/2,5 ) )                ; result = 255   ; result = 0
  Debug Alpha( Point( OutputWidth()/2,OutputHeight()/2 ) ) ; result = 255   ; result = 0
  
  StopDrawing( )
EndIf
If StartDrawing( ImageOutput( hole ) )
  DrawingMode( #PB_2DDrawing_AllChannels )
  Debug Alpha( Point( OutputWidth()/2,5 ) )                ; result = 255   ; result = 255
  Debug Alpha( Point( OutputWidth()/2,OutputHeight()/2 ) ) ; result = 0     ; result = 0
  
  StopDrawing( )
EndIf
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Alpha

Post by Keya »

You should provide descriptions with bug reports to make it clear what the apparent problem is
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Re: Alpha

Post by Lebostein »

Keya wrote: Sat May 15, 2021 9:25 am You should provide descriptions with bug reports to make it clear what the apparent problem is
I think the comments indicate a different return value of Alpha() for Mac OS an Windows
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] Alpha

Post by Fred »

Fixed.
Post Reply