【发布时间】:2018-02-12 04:28:35
【问题描述】:
在我的应用程序中,我从实时视频中拍摄快照,然后将其分配给 ImageSource,现在我想将 ImageSource 转换为 Byte[]
private ImageSource mSnapshotTaken;
public ImageSource SnapshotTaken
{
get => mSnapshotTaken;
set
{
if (value == null)
{
}
else
{
mSnapshotTaken = value;
// SnapshotToByte = mSnapshotTaken
OnPropertyChanged("SnapshotTaken");
}
}
}
public byte[] SnapshotToByte { get; set; }
【问题讨论】: