예제 #1
0
        public static Fitmap SaveBitmap(Bitmap bmp, string fileName, FitmapCompression.CompressionType compressionType)
        {
            Fitmap f = new Fitmap(bmp);

            f.SetCompressionAlg(compressionType);
            f.SaveToFile(fileName);
            return(f);
        }
예제 #2
0
        public static Bitmap LoadBitmapFromFile(string fileName)
        {
            Fitmap f = LoadFromFile(fileName);

            return(f.GetBitmap());
        }