예제 #1
0
        public static void Optimize(string filename)
        {
            PlateFile2 plate = new PlateFile2(filename, false);

            plate.Optimize();
            plate.Close();
        }
예제 #2
0
        public static Stream GetImageStream(Stream stream, int tag, int level, int x, int y)
        {
            PlateFile2 plate = new PlateFile2(stream);

            Stream result = plate.GetFileStream(tag, level, x, y);

            return(result);
        }
예제 #3
0
        public Stream GetStream(string pathPrefix, string plateName, int tag, int level, int x, int y)
        {
            if (string.IsNullOrEmpty(pathPrefix))
            {
                throw new System.ArgumentException($"'{nameof(pathPrefix)}' cannot be null or empty", nameof(pathPrefix));
            }
            var plateFile2 = new PlateFile2(Path.Combine(pathPrefix, plateName));

            return(plateFile2.GetFileStream(tag, level, x, y));
        }
예제 #4
0
        public static Stream GetFileStream(string filename, int tag, int level, int x, int y)
        {
            PlateFile2 plate = new PlateFile2(filename, true);

            Stream stream = plate.GetFileStream(tag, level, x, y);

            plate.Close();

            return(stream);
        }
예제 #5
0
        public static Stream GetFileStream(string filename, int tag, int level, int x, int y)
        {
            PlateFile2 plate = new PlateFile2(filename, true);

            Stream stream = plate.GetFileStream(tag, level, x, y);

            plate.Close();

            return stream;

        }
예제 #6
0
 public static void Optimize(string filename)
 {
     PlateFile2 plate = new PlateFile2(filename, false);
     plate.Optimize();
     plate.Close();
 }