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-06-26 05:53
中国DOS联盟论坛 » 贴图灌水、文学娱乐专区 » A strange picture in the interface of this forum View 4,105 Replies 41
Floor 16 Posted 2005-09-05 22:51 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
Brother M's research is quite thorough.

On this basis, I am willing to share my views with everyone.

First of all, what cannot be ignored is that this file is a GIF file.

-----------------------------------------------------------

GIF is a compression method based on mathematical formulas.
Its principle is to describe discrete values with continuous functions.

Then, after compression, the file will have a loss of image quality. These losses must be reduced to the range that can be observed by the naked eye (according to the compression ratio) or to an acceptable range.

-----------------------------------------------------------

For us, these files will have a loss of image quality after compression. In GIF, the image loss means the smearing of pixels, that is, blurring, but these only consider the positive display effect, so the situation where there is an approximate white instead of white on the image, and a similar black but actually another color. These are because when displaying positively, due to being extremely similar to the adjacent colors, the human eye cannot detect it (the compression ratio is appropriate). But when inverting the color, it completely distinguishes from the foreground color, background color, and transparent color, so there are "hidden" images.

-----------------------------------------------------------

In fact, such a phenomenon completely exists in other complex images. For example, the two emoticons at the end of this article will have "white" edges when inverting the color, but since we are sure to ignore the noise after inverting the color of complex images. So when such a situation occurs in simple images - especially regular geometric figures (the color smearing generated by the compression algorithm is also regular) - we are very surprised.

-----------------------------------------------------------

Forgive me for writing the above words in paragraphs, because my old K6-2 computer may be approaching the end of its life, and it frequently freezes

[ Last edited by fdsiuha on 2005-9-5 at 23:20 ]
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 17 Posted 2005-09-05 22:53 ·  IANA 局域网IP(Private-Use)
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Just now I found that IE still fills with blue at intervals when inverting the colors of 16-bit JPG images, at least my eyes tell me so.
In addition, I found that there are still various colors in the inverted image, at least there are pixels of various colors.
简单就是美
Floor 18 Posted 2005-09-05 22:59 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re Michael (Post 17):

>>Just now I found that IE still fills blue in intervals for 16-bit JPG images when inverting colors.

That means that the JPEG format also has a similar "dithering" effect. Maybe BitMap also does, which might be related to the image editing software.

>>I found that the inverted color image still has various colors, at least there are pixels of various colors.

Then it means that there are still many inverted colors, very likely just as many. It's just that the originally similar colors are very different after inversion, and the originally very different colors are反而 close after inversion. For example, the black of your ID and the red of the level.

[ Last edited by willsort on 2005-9-6 at 19:12 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 19 Posted 2005-09-05 23:03 ·  IANA 局域网IP(Private-Use)
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
However, everyone can consider that GIF files can be saved as Transparent type. Does the full blue filling have anything to do with this?
简单就是美
Floor 20 Posted 2005-09-05 23:13 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
No

Member levels are displayed in bold font. At this time, no matter what color it is, it is all inverted to the system background color.

For the specific explanation of the image problem, please see my reply above.

The pixels displayed after inversion are not caused by IE and software, because they are neither background color nor foreground color, but extra pixels caused by compression. Because of them, the quality of the image will deteriorate.

[ Last edited by fdsiuha on 2005-9-5 at 23:17 ]
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 21 Posted 2005-09-06 19:09 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re All:

This is 3 pictures I made with "Paint", you can compare them.


GIF JPG PNG

[ Last edited by willsort on 2005-9-6 at 19:18 ]
Attachments
十字_gif.GIF
十字_jpg.JPG
十字_png.PNG
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 22 Posted 2005-09-06 20:48 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
TO willsort:
I would like to ask: How do you capture the images?
Because, generally, when you click elsewhere, that effect will disappear?
...
??
Floor 23 Posted 2005-09-07 21:15 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re GOTOmsdos:

I used the region capture function of wincam2 (408K, probably a simplified version), and later I switched to the region capture function of SPX Capture, neither of which encountered the problem you mentioned.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 24 Posted 2005-09-08 13:59 ·  中国 湖北 宜昌 电信
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
Is the printscreen not working?
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 25 Posted 2005-09-11 02:12 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re fdsiuha:

PrintScreen works, but after copying, you need to crop it yourself and save it as a GIF, which is too troublesome, so I switched to using ready-made software.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 26 Posted 2005-09-11 11:25 ·  中国 福建 莆田 联通
初级用户
DOS学习中
Credits 29
Posts 15
Joined 2005-09-11 11:10
20-year member
UID 42422
Status Offline
No, mine is normal.
向认定的目标奋斗不懈!!!
Floor 27 Posted 2005-09-11 16:12 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
After inverting the colors of the three different formats of the cross of willsort, when viewed with a magnifying glass, they are all the same.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 28 Posted 2005-09-11 18:24 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re JonePeng:

Upon careful inspection, JPG images will have some "noise," while GIF and PNG do not; all three images were generated using "Paint," so the differences are likely related to the compression algorithms of the image formats.

That is to say, the "blurring of pixels" mentioned by brother fdsiuha also exists in other image formats, and I have not yet determined whether it is described by a continuous function. Other formats such as Bmp and TIF cannot be embedded in web pages, so their IE inverse color effects cannot be observed.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 29 Posted 2005-09-11 21:56 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
GIF and PNG are lossless compression, but when using software to draw, if the source image is in other lossy compression formats, and finally saved as GIF or PNG, the situation above will occur. This kind of thing happens frequently.

The computer often freezes. The previous post took 7 or 8 times to finish writing. The logic is a bit chaotic

[ Last edited by fdsiuha on 2005-9-11 at 21:58 ]
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 30 Posted 2005-09-11 23:19 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re fdsiuha:

Add one more point: All three images are made from BMP source images.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Forum Jump: