Ejemplo n.º 1
0
 private static void InitFormat(IEnumerable <PixelFormat> formats, byte pixelSize)
 {
     foreach (var format in formats)
     {
         sizeInfos[GetIndex(format)] = new PixelFormatSizeInfo
         {
             BlockSize    = pixelSize,
             BlockWidth   = 1,
             BlockHeight  = 1,
             IsCompressed = 0,
         }
     }
     ;
 }
Ejemplo n.º 2
0
 private static void InitBlockFormat(IEnumerable <PixelFormat> formats, byte blockSize, byte blockWidth, byte blockHeight)
 {
     foreach (var format in formats)
     {
         sizeInfos[GetIndex(format)] = new PixelFormatSizeInfo
         {
             BlockSize    = blockSize,
             BlockWidth   = blockWidth,
             BlockHeight  = blockHeight,
             IsCompressed = 1,
         }
     }
     ;
 }