bcb C++ Builder無法讀取JPG

問題

使用C++ Builder TImage讀取圖片路徑

Image1->Picture->LoadFromFile("icant.jpeg");

出現錯誤unknown picture file extension (.jpg)

解決方法

加入

#include <JPEG.HPP>

如果還不能使用,則調整圖片,如換張,或轉檔為jpg,jpeg,png等

留言

這個網誌中的熱門文章

tesseract is not installed or it's not in your path

tensorflow gpu版本 安裝教學 window 10 python 3.6