KFreonLib.Textures.ME2Texture2D.ChangeFormat C# (CSharp) Method

ChangeFormat() private method

private ChangeFormat ( string newformat ) : void
newformat string
return void
        private void ChangeFormat(string newformat)
        {
            return;
            /*
            if (newformat == "PF_R8G8B8" || newformat == "R8G8B8")
                throw new FormatException("24-bit textures are not allowed in ME2");
            if (texFormat != ImageEngineFormat.DDS_ATI2_3Dc)
            {
                if (texFormat != newformat && texFormat != "PF_" + newformat)
                {
                    if (newformat.Substring(0, 3) != "PF_")
                        texFormat = "PF_" + newformat;
                    else
                        texFormat = newformat;
                    properties["Format"].Value.StringValue = texFormat;
                }
            }
            else
            {
                if (newformat != "ATI2")
                {
                    if (newformat.Substring(0, 3) != "PF_")
                        texFormat = "PF_" + newformat;
                    else
                        texFormat = newformat;
                    properties["Format"].Value.StringValue = texFormat;
                }
            }*/
        }