shadowrecon Posted February 12, 2012 Share Posted February 12, 2012 so im trying to retrieve all the colors from a bitmap using this function C := GetBitmapAreaColors(0,0,W,H); and once i got the data im trying to call it within a for loop using i as the var for C but i just get the same result when writeln'ing the data. if i manually change it to C[10] it prints out a bunch of colors, my orginal thoughts were that C[x][y] but i guess this is not true.. Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 12, 2012 Share Posted February 12, 2012 C[y][x] Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted February 12, 2012 Author Share Posted February 12, 2012 C[y][x] Yeah i figured that out after a few hours of messing with it.. i was like wtf... lol. (btw that is messed up! err .. lol ) Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 12, 2012 Share Posted February 12, 2012 How is that messed up? You get an array of colors for every row... How is an array of colors for every column logical? Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 12, 2012 Share Posted February 12, 2012 Other languages generally store their arrays in row major order, and pascal stores it in column major order (or have I got terminology backwards?) At any rate just to be different Pascal stores arrays backwards compared to other languages. Quote Link to comment Share on other sites More sharing options...