Time:09-25
CodePudding user response:
try to convert the PNG to BMP
BCB read the Png image format file The 2016-05-23 | classification: program summary | tags: | browsing (40) Itself does not support PNG format images, but can be read by a third party controls, that is PngImage, download will PngImage. After HPP, pnglang. HPP, pngzlib. HPP (three File is loaded into the project directly with File - & gt; Open add), add # include & lt; Pngimage. Hpp> , and finally can be read using Image Png Image file, Reading method: [drink a little wine key] http://blog.hehehehehe.cn/a/17477.htm PNG TPNGObject *=new TPNGObject; PNG - & gt; LoadFromFile (Png image file); Image1 - & gt; Picture - & gt; The Assign (PNG); Delete the PNG; PNG=NULL; [drink a little wine key] http://blog.hehehehehe.cn/a/17477.htm
sorry to ask another question: how does TSpeedButton load PNG image
give you wrote a bcb6 example http://download.csdn.net/detail/1cctv/9572828
header file is not the same? http://download.csdn.net/detail/1cctv/9573436
Page link:https//www.codepudding.com/Backend/28799.html