Hmm, I don't have time to write an example of using pointers - you'll just have to work that out yourself.
However, here's an example using memblocks:
x=0
y=0
load bitmap "C:\Program Files\Dark Basic Software\Dark Basic Professional\Help\gfx\backdrop.jpg", 1
make memblock from bitmap 1,1
Width=memblock dword(1, 0)
Height=memblock dword(1,4)
Depth=memblock dword(1,8)
if Depth=16 then Colour=memblock word(1,12+(Width*y*2)+x)
if Depth=24 then Colour=memblock dword(1,12+(Width*y*3)+x)/256
if Depth=32 then Colour=memblock dword(1,12+(Width*y*4)+x)
set current bitmap 0
cls
print "Width:"; Width
print "Height:"; Height
print "Depth:"; Depth
print "Colour of first pixel:"; Colour
sync
wait key
Depending on your display depth, you will either get a colour value of 65535 (16 bit) or 16777215 (24/32 bit) - which equate to white. You can get the individual colour components using the rgbr/rgbg/rgbb functions.
You should be able to work out how it all works. I would have put the whole thing in a function, but the compiler kept throwing a wobbly.