Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到了这个例子并使用了它How do you resize a Bitmap under .NET CF 2.0
然而,由于抗锯齿,我的图像看起来很糟糕。它不再像它应该的那样看起来像素化。如何禁用抗锯齿?
将插值模式设置为最近邻:
g.InterPolationMode = InterpolationMode.NearestNeighbor