Results 1 to 9 of 9

Thread: PNG in Delphi

  1. #1

    PNG in Delphi

    Hello,

    I am having problems with GIFS because they look messed up when I use semi-transparent images, so I can only save it in PNG for it to look decent, but Delphi doesn't support PNG either.

    I found a thing called PNGDelphi.

    The instructions don't tell me how to install it in Delphi 2006.

    Could someone please help me?

    Or could someone recommend another component or library?

    Thank you.
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  2. #2

    PNG in Delphi

    http://pngdelphi.sourceforge.net/

    that is the way to go
    The views expressed on this programme are bloody good ones. - Fred Dagg

  3. #3

    PNG in Delphi

    Well, if it's a package, install it. If it's a unit, include it.

  4. #4

    PNG in Delphi

    This is what the help file says about installation (the only page on installation).

    Ok, it works now, thank you...BUT...I have a grey transparent lense in the image, and it looks green now(the colour behind the lens), I want to be able to see through that transparent lens onto whatever is behind the program, help?

    I think it's the because my Transparentcolour is set to clGreen.

    But I don't know of any other way to make it transparent how I want it.

    Thanks.

    -------------------------------------------------------------------------------------

    Beginning with the version 1.53, the component is distributed with its own Delphi packages and should be installed as any other components.
    All you have to do is install the packages within Delphi environment. This usually is simple as:

    First of all, copy (unzip) all the files to any directory (mainting the original directory structure);
    Go to the package sub-directory using Windows Explorer;
    Opening the package for your version of Borland Delphi. This will open the Delphi environment;
    Press the Install in the window that will pop up.
    You have just installed PngImage, now close the package window (Don't forget to put "Yes" when it ask if you want to save the package).

    You may also want to add the unit to the search path (instructions for Delphi 5).

    This time, go to the "Tools" menu and select the item "Enviroment Options".

    Click on the "Library" page.

    On the field "Library path" add a ";" followed by the unit directory. For instance ";c:\png".
    Click on the ok button.
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  5. #5

    PNG in Delphi

    PNGImage has a flaw in the latest release that normalizes and strips certain data; I am not sure if this is the same component you are using. Personally, I'd suggest Vampyre.

  6. #6

    PNG in Delphi

    I was trying to get a cross-platform version of libpng headers to work, but have been distracted. It works on Windows, but needs further work for it to work on Linux, MacOS X etc.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  7. #7

    PNG in Delphi

    Look in the direction of KambiUtils - it has a nice cross-platform libpng module in it.

    I use a castrated version of it in my projects.

  8. #8

    PNG in Delphi

    Thanks for your help, it should work I guess in the pro version, but, it says that I can't install components in that version. (Turbo Explorer)
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  9. #9

    PNG in Delphi

    The only Delphi I ever used was Turbo Explorer.

    I didn't install any components, I just ripped a chunk of Kambi's sources, patched it a bit so it could work on its own, and used it that way. Also, 95% of my time I use Free Pascal, not Delphi.

    But. I now completely moved to this: http://imaginglib.sourceforge.net/
    Immensely more powerful one.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •