1:load image to a TBitmap. use loadfromfile/loadfromstream/assign way 2:detect .pixelformat to know which format it is! 3:use .canvas.pixels[x,y] to get the Tcolor value that is a longword type! In this way, the bitmap will not be displayed! eg: bm:=TBitmap.create; bm.loadfromfile('a.bmp'); value:=bm.canvas.pixels[x,y]; bm.free;
2:detect .pixelformat to know which format it is!
3:use .canvas.pixels[x,y] to get the Tcolor value that is a longword type!
In this way, the bitmap will not be displayed!
eg:
bm:=TBitmap.create;
bm.loadfromfile('a.bmp');
value:=bm.canvas.pixels[x,y];
bm.free;