在Delphi中显示一些JPG文件的问题 [英] Problem with showing some JPG files in Delphi

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

问题描述

我试图用TImage组件在Delphi中打开一些JPEG文件。我也添加了Jpeg单位。我可以打开大部分jpg文件,没有问题。

i have tried to open some JPEG files in Delphi with TImage component. i also added the Jpeg unit. i can open most of jpg files and there is no problem.

但是当我尝试打开一些JPG时,程序只会抛出异常。

but when i try to open some JPGs, the program just throw an exception.

我也试图在设计模式下加载该图像,但有一些问题。在设计模式中,例外情况是:

i also tried to load that images in design mode, but there is some problem. in design mode the exception is:

访问冲突在模块'vcljpeg70.bpl'中的地址402672A1。写地址08E84000

为什么我无法打开这个JPG?它们没有被破坏。我在一些工具,如savantools EXIF查看器检查他们。

Why i cannot open that JPGs? they are not corrupted. i checked them in some tools like savantools EXIF viewer.

这里是其中一个图像的URL:
http://xs842.xs.to/xs842/09340/backpic435.jpg

here is the URL of one of that images: http://xs842.xs.to/xs842/09340/backpic435.jpg

非常感谢

PS:
我的Delphi版本是7. Borland Delphi 7

PS: My Delphi version is 7. Borland Delphi 7

推荐答案

您可能遇到此问题的原因是由于文件类型。 Delphi具有显示使用CMYK编码的JPEG图像的问题,而不是默认的RGB编码。 CMYK是通常用于打印设计的格式,尝试并始终将图像编码为RGB格式,以避免与Delphi相关的此问题。

The reason you may be encountering this problem is due to the file type. Delphi has issues displaying JPEG images that have been encoded using CMYK, rather than the default RGB encoding. CMYK is a format that is generally used for Print design, try and always encode your images to RGB format to avoid this issue with Delphi.

Delphi jpeg.dcu

再见。

这篇关于在Delphi中显示一些JPG文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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