CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: BMP files

  1. #1
    Join Date
    May 1999
    Posts
    18

    BMP files

    How can I use one color of a BMP file as transparent? I'm going to use a RES file to store the BMPs.


  2. #2
    Join Date
    Jul 1999
    Posts
    145

    Re: BMP files

    You can load the BMP into an imagelist, specifying the color you want to be transparent then call the extract icon function:

    Declare Function ImageList_GetIcon Lib "COMCTL32" (ByVal hIml As Long, ByVal i As Long, ByVal flags As Long) As Long 'returns hIcon

    Then save the icon. that's the easiest way I can think of.



Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured