New method in the BitmapOperations helper class.