示例#1
0
 public void Dispose()
 {
     if (pal != null)
     {
         CRuntime.free(pal);
         pal = null;
     }
     if (lpal != null)
     {
         CRuntime.free(lpal);
         lpal = null;
     }
     if (codes != null)
     {
         CRuntime.free(codes);
         codes = null;
     }
 }
示例#2
0
 public stbi__gif()
 {
     pal   = (byte **)palArray;
     lpal  = (byte **)lpalArray;
     codes = (stbi__gif_lzw *)codesArray;
 }
示例#3
0
文件: StbImage.cs 项目: dstiert/Myra
 public stbi__gif()
 {
     codes = (stbi__gif_lzw *)stbi__malloc(4096 * sizeof(stbi__gif_lzw));
     pal   = (byte *)stbi__malloc(256 * 4 * sizeof(byte));
     lpal  = (byte *)stbi__malloc(256 * 4 * sizeof(byte));
 }