flat assembler
Message board for the users of flat assembler.

Index > Windows > Icon format

Author
Thread Post new topic Reply to topic
Enko



Joined: 03 Apr 2007
Posts: 676
Location: Mar del Plata
Enko 27 Oct 2007, 19:27
Hello, I have a little problem with the *.ico format.
I read in the MSDN about this format but it doesn't explain well how dos the "AND" and "XOR" mask works. I now that its used to make the transparent aea , but don't now how.

Do you have a good link with the explanation. (couldn't find nothing in google) or now how does it work?
Post 27 Oct 2007, 19:27
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4046
Location: vpcmpistri
bitRAKE 28 Oct 2007, 00:31
second link on google:

http://www.awitness.org/delphi_pascal_tutorial/source3/and_xor_icon.html

AND clears, while XOR only changes the bits that are set in the icon.

010101011111 <--- pretent screen
111000001011 <--- AND mask
010000001011 <--- intermediate result

000110010100 <--- XOR mask
010110011111 <--- final result

result = XOR(xmask,AND(amask,screen))
Post 28 Oct 2007, 00:31
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.