用40年前的电脑打开女神图片,这你敢信?
恋习Python
共 4274字,需浏览 9分钟
·
2022-05-10 20:29
远在图像产生之前
先有图像还是先有图像格式?
1:03 AM 71 Melissa.txt
12:18 AM 5768 Melissa1.pic
12:18 AM 5768 Melissa2.pic
12:19 AM 5768 Melissa3.pic
12:20 AM 5768 Melissa4.pic
12:21 AM 5768 Melissa5.pic
5:40 AM 35 Opn.txt
12:04 AM 5768 Opps.pic
12:59 PM 50304 Poker.exe
1:06 AM 1288 Screen.pic
12:03 AM 5768 Stitle.pic
5:09 AM 69 Suzi.txt
12:02 AM 5768 Suzi1.pic
1:33 AM 5768 Suzi2.pic
12:00 AM 5768 Suzi3.pic
12:01 AM 5768 Suzi4.pic
12:00 AM 5768 Suzi5.pic
他们为什么要花这么多精力呢?
// Standard PCX header (C/C++)struct PCXHeader {char ID; // ID, always 0x0Achar Version; // The version numberchar Encoding; // Use of encoding (0, 1)char BitPerPixel; // 1, 2, 4 or 8short X1; // The minimum x-coordinate of the image positionshort Y1; // The minimum y coordinate of the image positionshort X2; // The maximum x coordinate of the image positionshort Y2; // The maximum y coordinate of the image positionshort HRes; // The horizontal image resolution in DPIshort VRes; // The vertical image resolution in DPIchar ClrMap[16*3]; // The EGA palette for 16-color imageschar Reserved1;char NumPlanes; // Number of color planes: 1, 3, or 4short BPL; // The number of bytes of one color planeshort Pal_t;char Filler[58];} Header;
总结
评论