예제 #1
0
        public static void GeneratePreview(string path, string outputPath, ref ImageInfo imageInfo)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                                                                   maxSize,
                                                                   maxSize,
                                                                   maxWidthPreview,
                                                                   maxHeightPreview);

            _generator.DoPreviewImage(path, outputPath, ref imageInfo);
        }
예제 #2
0
        public static void GenerateThumbnail(Stream stream, string outputPath, ref ImageInfo imageInfo, int maxWidth, int maxHeight)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                                                                   maxWidth,
                                                                   maxHeight,
                                                                   maxWidthPreview,
                                                                   maxHeightPreview);

            _generator.DoThumbnail(stream, outputPath, ref imageInfo);
        }
예제 #3
0
        public static void GeneratePreview(Stream stream, string outputPath, ref ImageInfo imageInfo, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                                                                   maxSize,
                                                                   maxSize,
                                                                   maxWidthPreview,
                                                                   maxHeightPreview);

            _generator.store = store;
            _generator.DoPreviewImage(stream, outputPath, ref imageInfo);
        }
예제 #4
0
        public static void RotateImage(string path, string outputPath, bool back, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                                                                   maxSize,
                                                                   maxSize,
                                                                   maxWidthPreview,
                                                                   maxHeightPreview);

            _generator.store = store;

            _generator.RotateImage(path, outputPath, back);
        }
예제 #5
0
        public static void GenerateThumbnail(string path, string outputPath, ref ImageInfo imageInfo, int maxWidth, int maxHeight, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                                                                   maxWidth,
                                                                   maxHeight,
                                                                   maxWidthPreview,
                                                                   maxHeightPreview);

            _generator.store = store;

            _generator.DoThumbnail(path, outputPath, ref imageInfo);
        }
예제 #6
0
        public static void GenerateThumbnail(Stream stream, string outputPath, ref ImageInfo imageInfo, IDataStore store)
        {
            var _generator = new ThumbnailGenerator(true,
                                                    maxSize,
                                                    maxSize,
                                                    maxWidthPreview,
                                                    maxHeightPreview)
            {
                Store = store
            };

            _generator.DoThumbnail(stream, outputPath, ref imageInfo);
        }
예제 #7
0
        public static void RotateImage(string path, string outputPath, bool back, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxSize,
                maxSize,
                maxWidthPreview,
                maxHeightPreview);
            _generator.store = store;

            _generator.RotateImage(path, outputPath, back);
        }
예제 #8
0
        public static void GeneratePreview(Stream stream, string outputPath, ref ImageInfo imageInfo, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxSize,
                maxSize,
                maxWidthPreview,
                maxHeightPreview);

            _generator.store = store;
            _generator.DoPreviewImage(stream, outputPath, ref imageInfo);

        }
예제 #9
0
        public static void GeneratePreview(string path, string outputPath, ref ImageInfo imageInfo)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxSize,
                maxSize,
                maxWidthPreview,
                maxHeightPreview);

            _generator.DoPreviewImage(path, outputPath, ref imageInfo);

        }
예제 #10
0
        public static void GenerateThumbnail(string path, string outputPath, ref ImageInfo imageInfo, int maxWidth, int maxHeight, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxWidth,
                maxHeight,
                maxWidthPreview,
                maxHeightPreview);
            _generator.store = store;

            _generator.DoThumbnail(path, outputPath, ref imageInfo);
        }
예제 #11
0
        public static void GenerateThumbnail(Stream stream, string outputPath, ref ImageInfo imageInfo, int maxWidth, int maxHeight)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxWidth,
                maxHeight,
                maxWidthPreview,
                maxHeightPreview);

            _generator.DoThumbnail(stream, outputPath, ref imageInfo);
        }