如何在C#中裁剪EMF图像而又不损失其质量? [英] How to crop EMF Images in C# without loss of its quality?

查看:174
本文介绍了如何在C#中裁剪EMF图像而又不损失其质量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试裁剪MeteFile(EMF)图像.但是裁切图像后,图像质量达不到预期的效果.我使用了下面的代码.

I have tried to crop the MeteFile(EMF) image. But after cropping the image, the quality of the image was not as expected. I have used the below code.

private static Image cropImage(Image img, Rectangle cropArea)
{
   Bitmap bmpImage = new Bitmap(img);
   return bmpImage.Clone(cropArea, bmpImage.PixelFormat);
}

 任何人都可以在不损失其质量的情况下裁剪EMF图像吗?

 Can anyone provide possibilities for crop the EMF image without loss of its quality?

推荐答案

请定义质量损失"的含义.

Please define what you mean with "loss of quality".

如果您拍摄的图像更小并且将其拉伸到同一表面上,那么您当然会看到更清晰的像素.这就像想知道为什么用放大镜查看屏幕上的像素.
只是因为自动选择了缩放因子来填充区域,所以图像缩放的基本规则不会停止应用.

If you take a smaler image and stretch it over the same surface, of course you see the pixels clearer. That is like wondering why you see the pixel on your screen if you look at it with a Magnifying glass.
Just because the zoom factor is automatically choosen to fill an area, basic rules of image zooming do not stop to apply.


这篇关于如何在C#中裁剪EMF图像而又不损失其质量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆