Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Images.CompressImages.GetFileSize C# (CSharp) 메소드

GetFileSize() 공개 정적인 메소드

public static GetFileSize ( string fileName ) : int
fileName string
리턴 int
        public static int GetFileSize(string fileName)
        {
            using (Stream stream = File.OpenRead(fileName))
                return (int)stream.Length;
        }
    }
CompressImages