"景先生毕设|www.jxszl.com

C# CacheBase类代码示例

2023-12-29 17:37编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CacheBase类的典型用法代码示例。如果您正苦于以下问题:C#CacheBase类的具体用法?C#CacheBase怎么用?C#CacheBase使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:BitmapData publicBitmapData(CacheBaseCache,intAddress) { EndianReaderReader=Cache.Reader; Reader.SeekTo(Address); Class=Reader.ReadString(4); Width=Reader.ReadInt16(); Height=Reader.ReadInt16(); Depth=Reader.ReadByte(); Flags=newBitmask(Reader.ReadByte()); Type=(BitmapType)Reader.ReadByte(); Reader.ReadByte();//dunnowhatthisis Format=(BitmapFormat)Reader.ReadInt16(); if((int)Format>31)//changetomatchdefinedformatlist Format-=5; MoreFlags=newBitmask(Reader.ReadInt16()); RegX=Reader.ReadInt16(); RegY=Reader.ReadInt16(); MipmapCount=Reader.ReadByte(); Reader.ReadByte(); InterleavedIndex=Reader.ReadByte(); Index2=Reader.ReadByte(); PixelsOffset=Reader.ReadInt32(); PixelsSize=Reader.ReadInt32(); }
原文链接:http://www.jxszl.com/biancheng/C/556629.html