使用Bitmap变量读取JPEG。好吗? [英] Read JPEG using Bitmap variable. Is it alright?

查看:104
本文介绍了使用Bitmap变量读取JPEG。好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我读取R G B时,我正在使用Bitmap变量读取Jpeg文件

。是相同还是不同?

When I''m read Jpeg files using Bitmap variable
when I read R G B . Is it same or different ?

推荐答案

在.net中,Bitmap类涵盖了更一般的概念:(理论上)所有光栅图像。正如您在此处所见: http://msdn.microsoft.com/en-us/library/at62haz6。 aspx [ ^ ], .net 位图对象 [ ^ ]默认支持多种栅格图像格式,包括jpeg。当您尝试读取像素数据时,您将获得正确的值(也取决于像素格式),与加载的图像所具有的文件格式无关。
In .net the Bitmap class covers more general concept: (theoretically) all raster images. As you can see here: http://msdn.microsoft.com/en-us/library/at62haz6.aspx[^], .net bitmap object[^] supports by default several raster image formats, including jpeg. When you try to read pixel data, you will get the proper value (depending on pixel format too), indifferent of the file format your loaded image had.


这篇关于使用Bitmap变量读取JPEG。好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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