GDI+ 如何实现类似 GDI 对源图像 XOR 到目标图像的操作?

1. 你仍然可以用 GDI API 来实现,例如

BitBlt(hdcDest,
nXDest,nYDest,
nWidthDest,
nHeightDest,
hdcSrc,
nXSrc,
nYSrc,
SRCINVERT);

参阅:
MSDN Platform SDK: Windows GDI

2. 此外,在VC.NET中你还可以使用新的 ATL 类 CImage 来实现本主题,它的 CImage::BitBlt() 等成员函数提供了对图像操作的类封装

参阅:
FAQ: VC.NET非托管程序如何显示JPEG等格式的图片文件?
MSDN ATL Library Reference CImage Class

Published At
Categories with Web编程
Tagged with
comments powered by Disqus