LET c = Desired color
DIM m AS _MEM: m = _MEM(c)
Alpha = _MEMGET(m, m.OFFSET, _UNSIGNED _BYTE)
Red = _MEMGET(m, m.OFFSET + 1, _UNSIGNED _BYTE)
Green = _MEMGET(m, m.OFFSET + 2, _UNSIGNED _BYTE)
Blue = _MEMGET(m, m.OFFSET + 3, _UNSIGNED _BYTE)
And ^that is basically how QB64 does it with fetching values. Colors are 4 bytes, from alpha, red, green, blue in memory. (32-bit colors, that is.)