alors en fait si tu changes test Scan
1 2 3
|
Writeln(Fichier_Test, 'Pixel('+IntToStr(i)+','+IntToStr(j)+ ') Pict_In: ' + ColorToString(Pict_In.Canvas.Pixels[i,j])
+ ' - Scan_In : ' + ColorToString(Scan_In[i+j*Width])); |
tu obtients
Pixel(0,0) Pict_In: clBlack - Scan_In : $00880015
Pixel(1,0) Pict_In: clRed - Scan_In : $00EFE4B0
Pixel(2,0) Pict_In: $0000F2FF - Scan_In : $0022B14C
Pixel(3,0) Pict_In: $004CB122 - Scan_In : $00FFAEC9
Pixel(4,0) Pict_In: $00E8A200 - Scan_In : $00B5E61D
Pixel(0,1) Pict_In: $00C9AEFF - Scan_In : $0099D9EA
Pixel(1,1) Pict_In: $000EC9FF - Scan_In : $00FFAEC9
Pixel(2,1) Pict_In: $00150088 - Scan_In : $003F48CC
Pixel(3,1) Pict_In: $00BE9270 - Scan_In : clBlack
Pixel(4,1) Pict_In: $001DE6B5 - Scan_In : clBlue
Pixel(0,2) Pict_In: $00E7BFC8 - Scan_In : $00C8BFE7
Pixel(1,2) Pict_In: $007F7F7F - Scan_In : $007F7F7F
Pixel(2,2) Pict_In: $004CB122 - Scan_In : $0022B14C
Pixel(3,2) Pict_In: $00A449A3 - Scan_In : $00A349A4
Pixel(4,2) Pict_In: $00E7BFC8 - Scan_In : $00C8BFE7
Pixel(0,3) Pict_In: $00EAD999 - Scan_In : $00FFAEC9
Pixel(1,3) Pict_In: $00C9AEFF - Scan_In : $00FFC90E
Pixel(2,3) Pict_In: $00CC483F - Scan_In : $00880015
Pixel(3,3) Pict_In: clBlack - Scan_In : $007092BE
Pixel(4,3) Pict_In: clRed - Scan_In : $00B5E61D
Pixel(0,4) Pict_In: $00150088 - Scan_In : clBlack
Pixel(1,4) Pict_In: $00B0E4EF - Scan_In : clBlue
Pixel(2,4) Pict_In: $004CB122 - Scan_In : $00FFF200
Pixel(3,4) Pict_In: $00C9AEFF - Scan_In : $0022B14C
Pixel(4,4) Pict_In: $001DE6B5 - Scan_In : $0000A2E8
et si tu utilises
1 2 3
|
Writeln(Fichier_Test, 'Pixel('+IntToStr(i)+','+IntToStr(j)+ ') Pict_In: ' + ColorToString(Pict_In.Canvas.Pixels[i,j])
+ ' - Scan_In : ' + ColorToString(Scan_In[i+(Height - j - 1)*Width])); |
tu obtiens
Pixel(0,0) Pict_In: clBlack - Scan_In : clBlack
Pixel(1,0) Pict_In: clRed - Scan_In : clBlue
Pixel(2,0) Pict_In: $0000F2FF - Scan_In : $00FFF200
Pixel(3,0) Pict_In: $004CB122 - Scan_In : $0022B14C
Pixel(4,0) Pict_In: $00E8A200 - Scan_In : $0000A2E8
Pixel(0,1) Pict_In: $00C9AEFF - Scan_In : $00FFAEC9
Pixel(1,1) Pict_In: $000EC9FF - Scan_In : $00FFC90E
...
ce qui te montre deux choses, premièrement le bitmaps on la tête en bas, et ScanLin et Pixels ont des composantes couleur inversés: ARGB et ABGR
Partager