摘要: typedef struct { u8* pixelData; int imageWidth; int imageHeight;}ImageInfo;typedef struct { u8* data; int size; int offset;}ImageSource;//------------... 阅读全文
posted @ 2015-01-23 00:54 colin_chan 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 从图片的数据块存储方式来看png分两种1.索引色模式存储。png8的索引色透明就采取该种方式。该种方式是将颜色存在png的可选模块调色板中,调色板的色彩存储格式为RGB(各1byte)。而图片的数据块里的像素直接存储调色板里的索引值,根据索引寻找对应的颜色及透明色。透明色的指定由PLTE后的tRNS... 阅读全文
posted @ 2015-01-23 00:38 colin_chan 阅读(20023) 评论(0) 推荐(1) 编辑