📜  图像源 - 工作 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:27.747000             🧑  作者: Mango

代码示例1
C#
myImg.Source = new BitmapImage(new Uri(@"component/Images/down.png", UriKind.RelativeOrAbsolute)); 

Python
self.teclogomain.Source = Imaging.BitmapImage(System.Uri("C:\Users\sreddy\AppData\Roaming\pyRevit-Master\extensions\TEC.extension\TEC kit.tab\panel2.panel\uitest.pushbutton\icon.png",System.UriKind.RelativeOrAbsolute))