WIC와 GDI+의 관계는 무엇입니까?
-
03-07-2019 - |
문제
WIC (Windows Imaging Component)와 GDI+의 관계에 대해 퍼지합니다. 예를 들어 WIC가 시각적으로 우수한 GIF 인코딩을 생성한다는 것을 보여주는 과거에 일부 작업을 수행했지만 이미지 처리 대 GDI+에 더 많은 사람들이 보지 못하는 것에 놀랐습니다. 나는 그것이 GDI+의 드로우 작업이 없다는 것을 알고 있지만 인코딩/디코딩의 경우 우수한 것 같습니다. 그렇다면 왜 우리는 마이그레이션을 보지 않습니까?
해결책
The relationship (or rather the difference between) WIC and GDI+ is that WIC is an extensible imaging codec framework which allows applications implementing the framework to receive support for new image formats via provided codecs. GDI+ is a core component of Windows which supports draw operations such as lines, fonts, gradients, etc.
While GDI+ has native support for several common image formats, WIC codecs can be provided for any image format.
다른 팁
I understood that GDI+ uses WIC to perform certain tasks. At least, in Windows 7 it does.
Please consider the following code:
image.Write(target, ImageFormat.Gif);
When I run this code under Windows XP it will use the GDI+ Gif encoder to write the image as a Gif. When I run the same code under Windows 7 it will use the WIC Gif Encoder.