flat assembler
Message board for the users of flat assembler.

Index > Windows > any idea how to put high res png image on button?

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 9179
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
any idea Smile
vb or fasm or masm code, all welcome (except .net code)
what i think now is sending the button handle from vb to fasm dll for it to process (add png file on top of it) Cool

what u guys think?
Post 12 Dec 2006, 10:16
View user's profile Send private message Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost
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
Post 12 Dec 2006, 19:34
View user's profile Send private message AIM Address MSN Messenger Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
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 Confused
Post 12 Dec 2006, 20:17
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 9179
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
k, thanks vasilev & redghost Smile
i would try to find and read some more Razz Razz
Post 12 Dec 2006, 23:50
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.