China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 19:40
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to write a transparent window in DOS? View 1,472 Replies 7
Original Poster Posted 2006-05-08 21:43 ·  中国 广西 柳州 电信
初级用户
Credits 70
Posts 22
Joined 2006-04-22 17:34
20-year member
UID 54267
Gender Male
Status Offline
I want to know how to write a transparent window like Windows under DOS? What is the principle?
Floor 2 Posted 2006-05-08 23:11 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
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.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 3 Posted 2006-05-09 12:13 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
DOS also writes these, it's too...

In fact, the command line doesn't lie in beauty but in practicality
Floor 4 Posted 2006-05-09 12:43 ·  中国 广西 柳州 电信
初级用户
Credits 70
Posts 22
Joined 2006-04-22 17:34
20-year member
UID 54267
Gender Male
Status Offline
Floor 5 Posted 2006-05-10 09:57 ·  中国 湖北 荆州 电信
高级用户
★★★
Credits 994
Posts 444
Joined 2005-01-29 00:00
21-year member
UID 35779
Gender Male
Status Offline
Heheh, the more you know, the better!
Floor 6 Posted 2006-05-11 13:14 ·  中国 广西 柳州 电信
初级用户
Credits 70
Posts 22
Joined 2006-04-22 17:34
20-year member
UID 54267
Gender Male
Status Offline
Is there anything more clearly stated???
Floor 7 Posted 2006-05-14 12:43 ·  中国 台湾 中华电信(HiNet)数据中心
初级用户
Credits 124
Posts 10
Joined 2004-10-09 00:00
21-year member
UID 32295
Gender Male
Status Offline
The principle of transparency is very easy.
RGB(background) * background level + RGB(foreground) * foreground level.
Background level + foreground level = 10.
Floor 8 Posted 2006-05-25 13:31 ·  中国 广西 柳州 电信
初级用户
Credits 70
Posts 22
Joined 2006-04-22 17:34
20-year member
UID 54267
Gender Male
Status Offline
Moderator of floor 7, thanks~~~~~~~~~~~
Forum Jump: