draw the geometry into a bitmap by set a bitmap to canvas