// make new bitmap
_backgroundBitmap = new Bitmap( width, height );// Bitmap.ROWWISE_MONOCHROME , width, height);// Bitmap.DEFAULT_TYPE,
// width, height );
Graphics bitmapGraphics = Graphics.create( _backgroundBitmap );
bitmapGraphics.drawShadedFilledPath( _xcoords, _ycoords, null, _colors, null );
// Update selected color
int[] argbData = new int[ 1 ];
_backgroundBitmap.getARGB( argbData, 0, 1, _x, _y, 1, 1 );
_selectedColor = argbData[ 0 ];