Bug? Canvas, color or bitmap defined in the Designer has no effect

klaus

Expert
Licensed User
Longtime User
As the title says, for Canvases, color or bitmap defined in the Designer has no effect.
Their default background is transparent and remains.
We need to draw those by code.
Attached a small test program.
Uncommenting these two lines shows what I expected.
' Canvas1.DrawImage(img1, 0, 0, Canvas1.Width, Canvas1.Height)
' Canvas2.DrawRect(0, 0, Canvas2.Width, Canvas2.Height, fx.Colors.Blue, True, 1)
 

Attachments

  • TestCanvas.zip
    70 KB · Views: 207
Top