c# - C# UWP 设置 MP3 缩略图
问题描述
在 C# UWP 中是否有可能设置 MP3 文件(即 StorageFile 的一种类型)的 COVER 图像?
我目前有一个文件(StorageFile)的引用,可以读取文件的属性(file.Properties.GetMusicPropertiesAsync()),我想用BitmapImage设置这个“媒体文件”的图像。
解决方案
您可以使用 taglib 访问文件的标记属性。检查这里https://www.nuget.org/packages/taglib/
这里有一些关于使用库https://csharp.hotexamples.com/examples/-/TagLib.File/-/php-taglib.file-class-examples.html的例子
推荐阅读
- xpath - 如何匹配xpath中的尾随文本?
- c - 链接器在创建 32 位内核中的工作
- c++ - Qt:即使包含“Q3DScatter”也无法识别
- java - 构造函数参考的供应商接口
- javascript - 在Angular中初始化具有一定数量元素的类数组
- node.js - 有catch的promise中未处理的catch错误 - Nodejs
- python - sqlalchemy psycopg2.errors.InsufficientPrivilege:关系<>的权限被拒绝
我已经阅读了 20 多个具有相同问题的不同问题 - 建议的答案并没有解决我的问题。我还在
sqlalchemy psycopg2.errors.InsufficientPrivilege: permission denied for relation <<table>>
环境:E
- python - PIL中的线掩码
- python - 具有包含列表的嵌入式文档的 MongoDB 数据库可能的最佳模式
- sql - 在 CTE 上使用左连接的查询在速度上产生了很大的不同