Home > Back-end >  How do bcb6 load PNG images
How do bcb6 load PNG images

Time:09-25

Timage unable to load the PNG images, and other controls can load, or what method? Thank you very much!

CodePudding user response:

To convert the PNG to BMP

CodePudding user response:

reference 1st floor dataxdata response:
try to convert the PNG to BMP

The converted image effect is not good, has a white background

CodePudding user response:

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

CodePudding user response:

The
reference 3 floor u010165006 response:
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

PngImage controls where to download?

CodePudding user response:

Baidu once, or in CSDN download search,

CodePudding user response:

It is ok to find a PNG space,

CodePudding user response:

Sorry to ask another question: how does TSpeedButton load PNG images

CodePudding user response:

refer to 7th floor qiushenwei88 response:
sorry to ask another question: how does TSpeedButton load PNG image


Estimates do not support, unless special means the PNG loaded into memory (converted into BMP may)

CodePudding user response:

Find a good one controls, that kind of like Windows 7 types of button controls can estimate, which exclude used,

CodePudding user response:

Should be directly support the new XE, old with PngImage, this looks good,

CodePudding user response:

PngImage only supports the TImage load Png image
TSpeedButton TBitBtn want to add the Png images can't add,

CodePudding user response:

Give you wrote a bcb6 example
http://download.csdn.net/detail/1cctv/9572828

CodePudding user response:

The
1 CCTV quoted 12 floor response:
give you wrote a bcb6 example
http://download.csdn.net/detail/1cctv/9572828

Thank you!
Compile files appear the following error:
[Error] c + + GdiplusGraphics. H (34) : E2015 Ambiguity between 'Gdiplus: : Graphics: : Graphics (void *)' and 'Gdiplus: : Graphics: : Graphics (void *, int)'
Positioning to GdiplusGraphics. H file

CodePudding user response:

Is not the same as the header files?
http://download.csdn.net/detail/1cctv/9573436

CodePudding user response:

On the 14th floor 1
reference CCTV response:
header file is not the same?
http://download.csdn.net/detail/1cctv/9573436

File changed is ok, thank you very much
Trouble ask next, I do this on TBitBtn Gdiplus: no images, Graphics g (BitBtn1 - & gt; Glyph - & gt; Canvas - & gt; Handle);
I do not know how to operate, and how to operate on TSpeedButton, thank you!

CodePudding user response:

Suggest using the new version haha, save a lot of things
  • Related