The only way I know to do that in Qlarity is by comparing the bits in the array and creating a pixmap. Here is some sample code. 8x8 pixmap created from 8 bytes.
Code:
func Draw (pass as boolean)
handles MSG_DRAW
dim b[] as byte
dim pixmap[] as byte
dim i, j, idx, c, n as integer
b := "abcdefgh"
Redim(pixmap, Len(b) * 8)
for i = 0 to Len(b) - 1
n := 1
for j = 0 to 7
if (byte(n) and b[i]) <> 0 then
c := 0
else
c := 255
endif
idx := i * j
pixmap[idx] := c
n := n * 2
next
next
DrawPixmap(30, 30, pixmap, 8, 8)
return
endfunc