It appears that the Dc.setFill() function is not working as expected. Below is some sample code that draws a toggle switch and demonstrates the issue:
public function setEnabled( isEnabled as Boolean ) as Void { var dc = _bufferedBitmap.getDc(); dc...