I tried the below and it is not making the black color transparent. Any ideas?
static public Image img_cursor = null;
static System.Drawing.Graphics img_cursor_src = System.Drawing.Graphics.FromImage(Resources.GetBitmap(Resources.BitmapResources.heat_30));
img_cursor_src.MakeTransparent(System.Drawing.Color.Black);
img_cursor = new Image()
{
Source = BitmapImage.FromGraphics(img_cursor_src),
Height = 30,
Width = 30,
};
//led left
Canvas.SetLeft(img_cursor, 0);
Canvas.SetTop(img_cursor, 0);