jaames on discord provided some insight about the getBitmapData
function which is not documented. The following information would help make the documentation more clear:
- data is MSB-ordered and 1 bit per pixel
- if
hasmask
is true, then the mask data is stored in a subsequent buffer beginning atdata + (rowbytes *height)