Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WindowsImagingComponent或System.Windows.Media.Imaging_Windows_Bitmap_Imaging_Wic - Fatal编程技术网

WindowsImagingComponent或System.Windows.Media.Imaging

WindowsImagingComponent或System.Windows.Media.Imaging,windows,bitmap,imaging,wic,Windows,Bitmap,Imaging,Wic,我需要在托管代码中使用一些位图,并将它们保存为PNG文件。我应该使用Microsoft.WindowsAPICodePack.DirectX.windowsvimagingcomponent,还是System.Windows.Media.Imaging?它们看起来非常相似,我不知道为什么我会选择其中一个。有人能比较一下吗 Microsoft.WindowsAPICodePack.DirectX.WindowsImagingComponent位于Windows API代码包中,这是一个源代码库,您

我需要在托管代码中使用一些位图,并将它们保存为PNG文件。我应该使用
Microsoft.WindowsAPICodePack.DirectX.windowsvimagingcomponent
,还是
System.Windows.Media.Imaging
?它们看起来非常相似,我不知道为什么我会选择其中一个。有人能比较一下吗

Microsoft.WindowsAPICodePack.DirectX.WindowsImagingComponent位于Windows API代码包中,这是一个源代码库,您需要将其构建到应用程序中。另一方面,System.Windows.Media.Imaging包含在.NET Framework中


如果Windows API代码包没有其他用途,我建议您使用System.Windows.Media.Imaging。我认为,在Windows API代码包中包含WIC API主要是为了与代码包中的DirectX API实现互操作性,而DirectX API在.NET Framework中没有等价物。

Microsoft.WindowsAPICodePack.DirectX.WindowsImagingComponent在Windows API代码包中,这是您需要构建到应用程序中的源代码库。另一方面,System.Windows.Media.Imaging包含在.NET Framework中


如果Windows API代码包没有其他用途,我建议您使用System.Windows.Media.Imaging。我认为,在Windows API代码包中包含WIC API主要是为了与代码包中的DirectX API进行互操作,而DirectX API在.NET Framework中没有等价物。

它们都使用WIC,这就是它们如此相似的原因。Windows API代码包是失效的内容,您需要使用WPF命名空间,因为它在.NET 3及更高版本上可用,并且不需要单独安装。

它们都使用WIC,这就是它们如此相似的原因。Windows API代码包是已停用的内容,您需要使用WPF命名空间,因为它在.NET 3及更高版本上可用,并且不需要单独安装。

您确定API代码包正在被弃用吗?已停用与弃用不同。它不再被维护了。你确定API代码包被弃用了吗?弃用和弃用不是一回事。它只是不再被维护了。