I would recommend you to save the bitmap as a variable in the interface section, and get pixel colors using BGRABitmap.GetPixel.