Results 1 to 2 of 2

Thread: Transparent TImage

  1. #1
    Senior Member
    Join Date
    Jul 2005
    Location
    Te mooi om waar te zijn..........
    Posts
    916

    Transparent TImage

    Hallo allemaal,

    Van 0nderstaand plaatje wil ik het mannetje transparant maken als volgt:

    HTML Code:
      Image28.Picture.Bitmap.LoadFromFile('C:\Mannetje.bmp');
      Image28.Transparent := True;
      Image28.Picture.Bitmap.Transparent := True;
      Image28.Picture.Bitmap.TransparentColor := clBtnFace;
      Image28.Picture.Bitmap.TransparentMode := tmAuto;
    Maar wat ik ook doe het mannetje wordt niet transparant wel de rest, het zwarte dus.

    Iemand enig idee wat ik hier fout doe?

    Name:  Mannetje.jpg
Views: 563
Size:  5.3 KB

    gr Frank

    Oplossing al gevonden. De TransparentMode is niet nodig . Die kan gewoon weggelaten worden.
    Last edited by FrankH; 19-Jan-19 at 12:59.

  2. #2
    Jup. Meer specifiek, in Auto modus zal de image zelf de kleur bepalen op basis van de pixel in (ik meen) de linker onderhoek.
    1+1=b

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •