I can not load PNG image as the background image error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35865
    xxJORExx
    Participant

    Hello friends,

    I'm using Delphi XE4

    I can not upload images of type PNG in a field sImage. The image is getting with the white background.

    See the example:

    dk8g.jpg

    I put the following components:

    sOpenPictureDialog1

    sButton1

    sImage1

    The code sButtons is this:

    Quote:
    begin

    if sOpenPictureDialog1.Execute then

    begin

    sImage1.Picture.LoadFromFile(sOpenPictureDialog1.FileName);

    end;

    How do I fix this problem?

    I hope you can help me

    Thank you!

    #50865
    Support
    Keymaster

    Hello!

    Could you upload this Png, please?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.