Recent

Author Topic: PNG not transparent on lazarus  (Read 6576 times)

neodivx

  • New Member
  • *
  • Posts: 13
PNG not transparent on lazarus
« on: December 16, 2006, 02:49:34 pm »
Hi alls,

first of all, this is my first post for lazarus, and so, i would like to thanks all the people who's working on this projet: this is a very great projet, make me feel beter for the pascal futur  ( borland is so changing this time.... )

for my problem, it's look not good:
I have some png to use like background.

let's take a stupid example:

http://www.neodivx.be/neodivx/images/testpng.png ( the image doesn't look transparent on IE, but if you load it on photoshop, you'll see this is a transparent background )

in delphi 2006, i load this png in a resource data. I use the componant from here: http://pngdelphi.sourceforge.net/.
The png is transparent, and working pretty well

In lazarus, i've try the same: the soft is crashing ( sorry this is in french: I translate as i can: Impossible to create a flux Form1:TForm1: Invalid horizontal pixel index -1 ): For the one i can call, it's just not working, the transparency is not working ( we see a bad color in the background )

i have try ( with the image witch working ) to add the following code:

Code:

  Form1.Brush.Style:=bsClear;
  Form1.BorderStyle:=bsNone;
 


doesn't work beter

i hope you can help

thanks a lot folks

( i don't know where to post, so i post here: the problem is on windows xp ;-) )

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2674
RE: PNG not transparent on lazarus
« Reply #1 on: December 18, 2006, 11:23:08 am »
please bugrep this, bugs posted her will be forgotten.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018