I ask because when i use CreateImage(24) vs CreateImage(32) depths i get a different value for DrawingBufferPixelFormat() for each on Windows and Linux, but OSX returns the same DrawingBufferPixelFormat() for both 24-bit and 32-bit CreateImage, is this correct? thankyou. (tested in 5.42 LTS, x64 on OSX)
[update] DrawingBufferPitch() remained the same suggesting both CreateImage(24) and CreateImage(32) are 32bit
Code: Select all
#Depth=24 ;32
hImg = CreateImage(#PB_Any,100,100,#Depth)
StartDrawing(ImageOutput(hImg))
Fmt = DrawingBufferPixelFormat()
StopDrawing()
Debug "Fmt=$"+Hex(Fmt)
;my results:
; Win-24: $8010 = #PB_PixelFormat_24Bits_BGR + #PB_PixelFormat_ReversedY
; Win-32: $8040 = #PB_PixelFormat_32Bits_BGR + #PB_PixelFormat_ReversedY
; Lnx-24: $8 = #PB_PixelFormat_24Bits_RGB
; Lnx-32: $20 = #PB_PixelFormat_32Bits_RGB ;shared
; OSX-24: $20 = #PB_PixelFormat_32Bits_RGB ;shared \ same?
; OSX-32: $20 = #PB_PixelFormat_32Bits_RGB ;shared / same?