Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);

        }
Ejemplo n.º 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);

        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }