Pourquoi je dois faire un tableau en (hauteur, largeur) et non dans l'ordre des declarations pour un ScreenOpen : largeur, hauteur ?
Code : Tout sélectionner
Dim p(dh-1,dw-1) ; >>>regardez ca, pkoi je dois inverser dw avec dh ici ?
Code : Tout sélectionner
For i=0 To 100
p(i,i) = RGB(0,0,255) ; >>>ligne bleue qui est rouge chez moi !
Next
Code : Tout sélectionner
Debug DrawingBufferPixelFormat() ; >>>ce truc m'affiche le mode 7 (du BVR)
La notice dit ceci des differents modes :
- #PB_PixelFormat_8Bits ; 1 octet par pixel, palettisé
#PB_PixelFormat_15Bits ; 2 octets par pixel
#PB_PixelFormat_16Bits ; 2 octets par pixel
#PB_PixelFormat_24Bits_RGB ; 3 octets par pixel (RRGGBB)
#PB_PixelFormat_24Bits_BGR ; 3 octets par pixel (BBGGRR)
#PB_PixelFormat_32Bits_RGB ; 4 octets par pixel (RRGGBB)
#PB_PixelFormat_32Bits_BGR ; 4 octets par pixel (BBGGRR)
