ME3Explorer.Unreal.Classes.Texture2D.extractMaxImage C# (CSharp) Method

extractMaxImage() public method

public extractMaxImage ( string archiveDir = null, string fileName = null ) : void
archiveDir string
fileName string
return void
        public void extractMaxImage(string archiveDir = null, string fileName = null)
        {
            // select max image size, excluding void images with offset = -1
            ImageSize maxImgSize = imgList.Where(img => img.offset != -1).Max(image => image.imgSize);
            // extracting max image
            extractImage(imgList.Find(img => img.imgSize == maxImgSize), archiveDir, fileName);
        }