Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

Read PNG with transparency

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Valdas Jankūnas

Hello,

how i can read PNG image with transparency from file or resource?

Currently i using code:

uses LazPng;
var
   img: TPngImage;
begin
     img:=TPngImage.Create;
     img.LoadFromFile('image.png');
...

But when i save loaded image i realized that transparency in saved image is gone, or if i check property "img.Transparent" i got False.

I using Lazarus svn 14975, Free Pascal Compiler version 2.2.0 [2007/08/31] for i386

Valdas Jank?nas

Reply by email