flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Windows > any idea how to put high res png image on button? | 
  
| Author | 
  | 
              
| 
                  
                   RedGhost 12 Dec 2006, 19:34 
                  Since in C# (.NET) you can assign a png to a button, it is possible. But I couldn't tell you if uses its own mapping routine with owner draw, or converts to bitmap I've never really looked into it. 
                  _________________ redghost.ca  | 
              |||
                  
  | 
              
| 
                  
                   Vasilev Vjacheslav 12 Dec 2006, 20:17 
                  sleepsleep, check out miranda-im source code, you will find how to convert png into dib (device independent bitmap) in memory and then it's quite easy to put dib onto button, that's all
 
                  
                ps: c++/c code ps: i've already made buttons based on gif and bitmaps, now you give me idea to write png support, but png decoding requiring zlib and pnglib, they are pretty huge  | 
              |||
                  
  | 
              
| 
                  
                   sleepsleep 12 Dec 2006, 23:50 
                  k, thanks vasilev & redghost  
                  
                i would try to find and read some more  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.