WPF C#位图资源作为ImageBrush的Imagesource

时间:2015-05-07 14:31:36

标签: c# wpf bitmap imagesource imagebrush

我有位图资源Properties.Resources.part1

internal static System.Drawing.Bitmap part1 
{
    get 
    {
        object obj = ResourceManager.GetObject("part1", resourceCulture);
        return ((System.Drawing.Bitmap)(obj));
    }
}

如何将此资源设置为Rectangle.Fill属性?

0 个答案:

没有答案