前面介绍了如何直接操作WinCE的FrameBuffer,这里将介绍一种通过写FrameBuffer显示资源中BMP图片的方法。并与使用GDI做一个比较,看看直接读写FrameBuffer是否能提高效率? 采用GDI的方法,关键代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http:/
创建BMPLoader.cs 此方法是用来将数据流解析成texture,BMP数据流不同于其他图片数据,所以需要特殊处理 #region License and Information/******* BMPLoader.cs* * This is a simple implementation of a BMP file loader for Unity3D.* Formats