Пример #1
0
        public static void GenerateThumbnail(string path, string outputPath, ref ImageInfo imageInfo, int maxWidth, int maxHeight)
        {
            var _generator = new ThumbnailGenerator(null, true,
                                                    maxWidth,
                                                    maxHeight,
                                                    maxWidthPreview,
                                                    maxHeightPreview);

            _generator.DoThumbnail(path, outputPath, ref imageInfo);
        }
Пример #2
0
        public static void GenerateThumbnail(Stream stream, string outputPath, ref ImageInfo imageInfo)
        {
            var _generator = new ThumbnailGenerator(null, true,
                                                    maxSize,
                                                    maxSize,
                                                    maxWidthPreview,
                                                    maxHeightPreview);

            _generator.DoThumbnail(stream, outputPath, ref imageInfo);
        }
Пример #3
0
        public static void GenerateThumbnail(Stream stream, 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(stream, outputPath, ref imageInfo);
        }
Пример #4
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);
        }
Пример #5
0
        public static void GenerateThumbnail(Stream stream, string outputPath, ref ImageInfo imageInfo, IDataStore store)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxSize,
                maxSize,
                maxWidthPreview,
                maxHeightPreview);

            _generator.store = store;
            _generator.DoThumbnail(stream, outputPath, ref imageInfo);
        }
Пример #6
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);
        }
Пример #7
0
        public static void GenerateThumbnail(string path, string outputPath, ref ImageInfo imageInfo)
        {
            ThumbnailGenerator _generator = new ThumbnailGenerator(null, true,
                maxSize,
                maxSize,
                maxWidthPreview,
                maxHeightPreview);

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