在C#中显示压缩的图像 [英] Display compressed Image in c#

查看:109
本文介绍了在C#中显示压缩的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统中有一个压缩的图像(jpg).我想使用c#以原始格式打开它.当我尝试打开它时,它会以压缩图像本身的形式打开.谁能帮我??预先感谢..

I have a compressed image in my system(jpg) . I want to open it in the original format using c#.When im trying to open it, it opens as compressed image itself. Can anyone help me?? Thanks in advance..

推荐答案

Jpg是一种压缩格式-也是一种有损格式.这意味着您打开的.JPG文件不包含原始文件中的所有信息,因为创建jpg时它会丢弃一些信息.因此,如果您的原始文件是一个位图,该位图分别存储每个像素,则jpg将平均"一个像素块并仅存储该平均值.

返回到原始图像的唯一方法是打开原始图像而不是jpg文件.
Jpg is a compressed format - and a lossy one at that. Which means that the .JPG file you open does not contain all the information that was in the original as it throws away some information when the jpg is created. So if your original file was a Bitmap, which stores every pixel individually, a jpg would "average" a block of pixels and store just that averaged value.

The only way to get back to exactly the original image, is to open the original image instead of the jpg file.


这篇关于在C#中显示压缩的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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