Пример #1
0
 public ThumbnailKinFinder(uint parentType, THUM.THUMSize size, bool isPNGInstance)
     : base(size.ToString())
 {
     this.isPNG = isPNGInstance;
     this.thumType = THUM.getThumbType(parentType, size, isPNGInstance);
     this.isCWAL = parentType == 0x515CA4CD;
     this.CompleteKinName();
 }
Пример #2
0
 public ThumbnailKinFinder(IResourceKey parentKey, IResource parent, THUM.THUMSize size)
     : base(size.ToString())
 {
     this.isPNG = false;
     if (THUM.CType(parentKey) == CatalogType.ModularResource)
     {
         this.thumType = 0;
     }
     else if (THUM.CType(parentKey) == CatalogType.CAS_Part)
     {
         this.thumType = THUM.getThumbType(parentKey.ResourceType, size, false);
     }
     else
     {
         this.thumInstance = (parent != null) ?
             (ulong)parent["CommonBlock.PngInstance"].Value : 0;
         this.isPNG = this.thumInstance != 0;
         this.thumType = THUM.getThumbType(parentKey.ResourceType, size, this.isPNG);
     }
     this.CompleteKinName();
 }