I'm trying to load a jpg file which is 604KB big 开发者_如何学运维into a TImage component on a vanilla TForm but the load causes it to fail with an access violation:
Access violation at address 402372AD in module vcljpg60.bpl. Write of address 0904000
I just tried it in Delphi 7 and the same is true except the vcl is 70 instead of 60 and the address is slightly different
Does anyone know of a bug in Delphi around jpg files?
Many thanks for any input on this cheers Colin
maybe you problem is due to the colorspace of your JPEG file. Delphi has issues displaying JPEG images that have been encoded using CMYK
instead of RGB
encoding.
Check this Enhanced JPEG implementation
which fix the problem with the CMYK
colorspace. also you can check this similar question Problem with showing some JPG files in Delphi
.
精彩评论