en utilisant se code sur un bitmap de couleur rouge uni.
j'obtient successivement 000000FF, 00000000, 00000000.Code:
1
2
3
4
5
6
7 for (int y=0;y<ymax;y+=4) {line=(Byte *)Image2->Picture->Bitmap->ScanLine[y]; for (int x=0;x<xmax;x+=4) {couleur=IntToHex(StrToInt(line[x]),8); Label2->Caption=Form1->Label2->Caption+"\n"+couleur; }; };
Pourquoi, comment corriger cette erreur?