when you have the 16 bit pixel value,
as in your code, you probably have a 565 format meaning 5 bits red, 6 bits green, 5 bits blue,
so do a bitwise 'and = &' operation on the pixel to remove the R & G component
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum