Page 1 of 1

ImageDepth

Posted: Sat May 15, 2021 8:43 am
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

Debug ImageDepth( img);, #PB_Image_OriginalDepth) - 24
Debug ImageDepth( hole);, #PB_Image_OriginalDepth ) - 32


Re: ImageDepth

Posted: Sat May 15, 2021 11:13 am
by mk-soft
Ok unter macOS Big Sur v11.1.

Re: ImageDepth

Posted: Fri Aug 18, 2023 5:07 pm
by Fred
On OS X all the image are 32-bit internally.