What i want to do is send a bitmap (a byte array) as a function parameter and want to access the individual elements of the array within the function :
For example:
Code: Select all
const icon: array [32] of byte = (
0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80, 0x80, 0xC0, 0xE0,
0xF0, 0xF8, 0xFC, 0xFE, 0xFF, 0xFE, 0xFC, 0x78, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
procedure displaybitmap(const Bmp: ^byte);
begin
//how to access value of nth element of bmp, for example value of icon[11] is 0xC0
end;