fixed poly2bitmap parameter switch