forked from: BitmapDataSample3

