TJPEGImage component version 1.3 Luciano Bajo Eloy - Sep 9, 1997
Madrid, Spain
E-mail: lbe20@tid.es
Andreas Hoerstemeier - May 17, 1998
Aachen, Germany
E-Mail: andy@hoerstemeier.de
WWW: http://www.westend.de/~hoerstemeier
-------------------------------------------------------------------------------
Note on Version 1.3: This version now adds the ability to save the JPEG
as well as a TDBJPEGImage. For details see the
New Features section.
-------------------------------------------------------------------------------
Important note: I (Luciano) have changed my job. I do not work with Delphi
currently, I use Visual C++ (I hate it, but such is life).
That means that I cannot reply several mails a day pertaining
to TJPEGImage. Instead I have included the source code. If
you have any problems, you will have to modify the code by
yourself. Please, do not send me E-mails unless it is truly
necessary.
Note on installation: Select the file JpgImgR.pas when installing the component
-------------------------------------------------------------------------------
Index:
0. Answers to common questions and requests
1. New features (from version 1.0 to 1.1 and 1.2)
2. Introduction
3. JPEGImage properties and events
3a. DBJPEGImage additional properties and events
4. Remarkable features
5. Known limitations (future improvements?)
6. Distribution and source code
7. Information and libraries on JPEG compression
-------------------------------------------------------------------------------
0. Answers to common questions and requests
-------------------------------------------------------------------------------
Basically, all of the E-mails I have received pertaining to TJPEGImage
fall into one of these topics:
-Requests for source code. Well, I did not provide the source code
with TJPEGImage 1.0 (I sended it on request) as a mean to know if the
component was being used. The result is that many people have requested it
and I have had to send several mails a day with the code attached. To avoid
this, I provide the full source code with this version.
-Support for Delphi 3.0. Delphi 3.0 adds support for JPEG files so
TJPEGImage is no longer required. Drop a TImage on a form (Image1, for
example), add jpeg.pas to the uses clause and load a JPEG file with
Image1.Picture.LoadFromFile. However this component also runs with D3 since
V1.2, only a bit slower than the Delphi one.
-Loading pictures from a stream. TJPEGImage does not support loading
pictures from a stream. If you need that feature you will have to modify
the code, I think it will not be difficult. (Obsolete, added with V1.2)
-Coding JPEG images. TJPEGImage is a decoder, not a coder. That means
that you can view JPEG files, but you cannot save files as JPEG. (Obsolete,
added with V1.3).
-------------------------------------------------------------------------------
1. New features (from version 1.0 to 1.1 and 1.2)
-------------------------------------------------------------------------------
From Version 1.0 to 1.1
-Finally, FileName has its own property editor by courtesy of Keith
Anderson, who sent me the code by E-mail.
-A new property and a new event have been added for indicating the
progress of the decompression (see section 2 for details).
-A bug has been fixed. When a corrupted JPEG file was loaded into
the component the file was being left open. Any further action on this file
generated a Sharing Violation exception (IOResult = 32). The bug has been
reported and fixed by Derek (sorry, I do not know your last name).
From Version 1.1 to 1.2 (changes done by Andreas Hoerstemeier)
-The component can now also load the image from any stream, it now has
a LoadFromStream method, so it can also be used to display files out of a
database (TBlobStream) or downloaded from the web without the need of a
temporary file.
-As the whole PasJPG library didn't include any 32bit specific parts
the component could be modified easily for Delphi 1 (but note it is slow there
compared to Delphi 2), and in the same way to work with Delphi 3, too. It may
also run in C++ Builder, but I've no chance of testing this.
From version 1.2 to 1.3 (changes done by Andreas Hoerstemeier)
-The coding part of the JPEG library is now also included and
connected to the component.
-A new TDBJPEGImage is included which allows to you to link a BLOB
field containing JPEG images to a visual control easily.
From version 1.3 to 1.4 (changes done by Andreas Hoerstemeier)
-New property Comment to link to the optional comment within the
JPEG file.
-------------------------------------------------------------------------------
2. Introduction
-------------------------------------------------------------------------------
JPEGImage is based on the work of NOMSSI NZALI Jacques H. C., author
of the PASJPEG library (http://www.tu-chemnitz.de/~nomssi/pub/pasjpeg.zip).
On his own words, PASJPEG is a port of the sixth public release of the IJG
(Independent JPEG Group) C source (release 6a of 7-Feb-96), that implements
JPEG baseline, extended-sequential, and progressive compression processes to
Turbo Pascal 7.0 for DOS (TP).
My goal was to get a Delphi component for decompressing and viewing
JPEG images. So I began from DJPEG.PAS, a DOS program written by Thomas G.
Lane included in the PASJPEG library for translating JPEG files to BMP or
TARGA files. My work has consisted of the following steps:
1. Create a new component inherited from TImage.
2. Change command line options in DJPEG to properties in TJPEGImage.
3. Fit the output in a memory stream instead of a disk file.
4. Change WriteLn and Halt procedures to Delphi exceptions.
5. Put the library on a diet, that is, delete unnecessary files and
code.
Once those steps where covered, I found a problem in 256 colors video
mode: the first image loaded had the right colors, but successive images
caused the color palette to become corrupted. Fortunately, I was a little
luck and I could solve the problem.
-------------------------------------------------------------------------------
3. JPEGImage properties and events
-------------------------------------------------------------------------------
The properties of TJPEGImage are (apart from those in TImage):
-FileName: Name of the JPEG file.
-NumOfColors: Colors of the resulting image. Possible values are _16,
_256, or TrueColor. DO NOT use TrueColor in 256 video modes or
the colors in the image will become distorted. (Default 256).
Not used for saving as JPEG images can only be true color or
grayscale.
-DCTMethod: Method used for the Discrete Cosine Transform in JPEG
algorithms. Possible values are Integ (default), FastInteg
(faster but less accurate) or FloatingPoint (more accurate
but slower).
-Dither: Possible values are none (do not use dithering in
quantization), FS (default) or ordered (medium speed, quality).
Not for saving.
-GrayScale: Force grayscale output (default False).
-NoSmooth: Do not use high-quality upsampling (default False).
Loading only.
没有合适的资源?快使用搜索试试~ 我知道了~
Delphi:视频会议系统.zip源码Delphi项目程序源码下载
共2000个文件
bmp:1028个
gif:432个
pas:237个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 24 浏览量
2022-03-18
18:17:13
上传
评论
收藏 50.37MB ZIP 举报
温馨提示
Delphi:视频会议系统.zip源码Delphi项目程序源码下载Delphi:视频会议系统.zip源码Delphi项目程序源码下载 1.合个人学习技术做项目参考 2.适合学生做毕业设计参考 3.上线产品适合小公司开发项目参考
资源推荐
资源详情
资源评论
收起资源包目录
Delphi:视频会议系统.zip源码Delphi项目程序源码下载 (2000个子文件)
聊天室里的播放器外观.bmp 429KB
聊天室里的播放器屏显.bmp 310KB
聊天室影音房间屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
影音屏显.bmp 310KB
聊天室影音房间屏显.bmp 308KB
apollo25357062.bmp 300KB
const8101656.bmp 300KB
心雨25566687.bmp 300KB
99147956590.bmp 300KB
const146849238.bmp 300KB
const146804083.bmp 300KB
starcbh-2006-01-11 16-06-41.bmp 300KB
const8150984.bmp 300KB
const97304276.bmp 300KB
qx7911112202953.bmp 300KB
const8050578.bmp 300KB
const_1-11_23279890.bmp 300KB
const147045169.bmp 300KB
悠悠升级页面副本.bmp 258KB
系统升级.bmp 258KB
系统升级.bmp 258KB
系统升级.bmp 258KB
系统升级.bmp 258KB
底图.bmp 189KB
底图.bmp 189KB
登陆.bmp 169KB
悠悠升级.bmp 134KB
gg.bmp 128KB
系统升级页面.bmp 125KB
系统升级.bmp 125KB
系统升级.bmp 125KB
系统升级.bmp 125KB
系统升级.bmp 125KB
foot.bmp 117KB
all.bmp 102KB
all.bmp 102KB
会议.bmp 102KB
video.bmp 100KB
466.bmp 100KB
4111.bmp 100KB
video.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
聊天屏显.bmp 100KB
底.bmp 92KB
底.bmp 92KB
top.bmp 90KB
未命名.bmp 87KB
未标题-22.bmp 84KB
未标题-22.bmp 84KB
未标题-22.bmp 83KB
未标题-22.bmp 83KB
未标题-2.bmp 74KB
未标题-2.bmp 74KB
2.bmp 64KB
2.bmp 64KB
3.bmp 60KB
3.bmp 60KB
1.bmp 55KB
1.bmp 55KB
login.bmp 52KB
logon.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
登录.bmp 51KB
3_3.bmp 50KB
2_2.bmp 50KB
group_background_2.bmp 50KB
group_background_3.bmp 50KB
group_background_3.bmp 50KB
group_background_2.bmp 50KB
3_3.bmp 50KB
2_2.bmp 50KB
group_background_3.bmp 50KB
group_background_2.bmp 50KB
group_background_3.bmp 50KB
group_background_2.bmp 50KB
group_background_2.bmp 50KB
group_background_3.bmp 50KB
group_background_3.bmp 50KB
group_background_2.bmp 50KB
复件 1_1.bmp 48KB
1_1.bmp 48KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- hurry_li2023-07-28感谢大佬,让我及时解决了当下的问题,解燃眉之急,必须支持!
- hahajin20082023-12-30资源使用价值高,内容详实,给了我很多新想法,感谢大佬分享~
yxkfw
- 粉丝: 81
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功