gpt4 book ai didi

windows-runtime - 图像源的 URI 格式

转载 作者:行者123 更新时间:2023-12-04 07:10:12 24 4
gpt4 key购买 nike

下面的uri有什么问题?

bmi.UriSource = (new Uri(@"/Assets/Image.png", UriKind.Relative));

其中 bmi 是一个 BitmapImage
我将图像的构建操作设置为嵌入式资源。

最佳答案

找到了;

bmi.UriSource = (new Uri("ms-appx:/Assets/Logo.png"));

并将构建操作设置为内容。 RT 中没有相对 URI。

关于windows-runtime - 图像源的 URI 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16200542/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com