Difficult to tell if this is your issue from the posted code but the type of Test has to be System.Windows.Media.Color
rather than System.Background.Color
.
EDIT
The values you are calculating from PenColor are (0, 200, 10, 5), which is transparent and hence shown correctly. Did you mean (255, 200, 10, 5) which is red?