![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-01 20:49 |
48,037 topics / 350,122 posts / today 2 new / 48,249 members |
| DOS开发编程 & 发展交流 (开发室) » How to write a transparent window in DOS? |
| Printable Version 1,477 / 7 |
| Floor1 qingfen | Posted 2006-05-08 21:43 |
| 初级用户 Posts 22 Credits 70 | |
|
I want to know how to write a transparent window like Windows under DOS? What is the principle?
|
|
| Floor2 JonePeng | Posted 2006-05-08 23:11 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
|
The principle should be to take the RGB values of each pixel of the window and the corresponding pixel in the background, and mix them in a certain proportion to allocate the "intermediate color". Hehe, I'm just guessing randomly.
|
|
| Floor3 electronixtar | Posted 2006-05-09 12:13 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
DOS also writes these, it's too...
In fact, the command line doesn't lie in beauty but in practicality |
|
| Floor4 qingfen | Posted 2006-05-09 12:43 |
| 初级用户 Posts 22 Credits 70 | |
| Floor5 jawbin | Posted 2006-05-10 09:57 |
| 高级用户 Posts 444 Credits 994 | |
|
Heheh, the more you know, the better!
|
|
| Floor6 qingfen | Posted 2006-05-11 13:14 |
| 初级用户 Posts 22 Credits 70 | |
|
Is there anything more clearly stated???
|
|
| Floor7 dos_jacky | Posted 2006-05-14 12:43 |
| 初级用户 Posts 10 Credits 124 | |
|
The principle of transparency is very easy.
RGB(background) * background level + RGB(foreground) * foreground level. Background level + foreground level = 10. |
|
| Floor8 qingfen | Posted 2006-05-25 13:31 |
| 初级用户 Posts 22 Credits 70 | |
|
Moderator of floor 7, thanks~~~~~~~~~~~
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |