Delphi 7, download PNG to TImage

I just want to download .PNG by trying my LoadPic () using OleGraphic, which works with other formats, but this did not work in PNG.

The goal is to copy the image into a hidden bitmap, after which it is masked and copied to the visible working canvas of the image. Feel free to suggest something else if CopyRect does not.

But the main question: Download PNG. How? I found many pages (f.ex. TPNGImage), but all resources and links on the Internet are dead, gone or not loading.

+4
source share
6 answers

I will be using GraphicEx from Soft Gems for now, Thanks for the helpful answers!

+5
source

Delphi 7 does not support PNG natively. There are several third-party components that will allow you to add this support. For example, on the website of Torry .

+11
source

Recent versions of Delphi support PNG natively, among many other improvements, and you will be advised to upgrade.

+6
source

Loading from below ...

http://delphi.pjh2.de/articles/graphic/png.php

It is very easy to process .png images with delphi 7 ... Just add it to use ... and create a png object ...

+3
source

The small Open Source SynGdiPlus library can load and save gif, tiff and png images .

It will call the GdiPlus.dll library, available with Windows XP.

It is fast and reliable.

The same unit is capable of displaying any GDI metafile using anti-aliasing: you write on a normal TCanvas, then draw with anti-aliasing using GDI +. A small code change, more rendering.

An open source module running from Delphi 6 to XE.

You can download the latest version from http://synopse.info/fossil/finfo?name=SynGdiPlus.pas

0
source

SoftEx GraphicEx ported to https://github.com/mike-lischke/GraphicEx

An explanation of the move can be found at http://www.soft-gems.net/index.php/libs/43-graphicex-on-github

I added GraphicEx to my Delphi 6 project, and it worked out of the box, but when I tested it with Delphi 5, it did not.

Despite this, it works well and implements not only PNG images, but also many others that are configured from GraphicConfiguration.inc:

// Pick your preferred image formats here or leave them all enabled. By disabling // certain formats which are not of interest you can save some memory. {$define UseLZW} //patent is out, yay! {$define SGIGraphic} // *.bw, *.rgb, *.rgba, *.sgi images are supported {$define AutodeskGraphic} // *.cel, *.pic images {-$define NewTIFFGraphic} // *.tif, *.tiff images {$define OldTIFFGraphic} {$define TargaGraphic} // *.tga, *.vst, *.icb, *.vda, *.win images {$define PCXGraphic} // *.pcx, *.pcc, *.scr images {$define PCDGraphic} // *.pcd images {$define PortableMapGraphic} // *.ppm, *.pgm, *.pbm images {$define CUTGraphic} // *.cut (+ *.pal) images {$define GIFGraphic} // *.gif images {$define RLAGraphic} // *.rla, *.rpf images {$define PhotoshopGraphic} // *.psd, *.pdd images {$define PaintshopProGraphic} // *.psp images {$define PortableNetworkGraphic} // *.png images {$define EPSGraphic} // *.eps images {$define ArtsAndLettersGraphic} // *.ged images 
0
source

All Articles