Extensions/ImageGlass.ThumbBar/ThumbnailCreation.cs

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Drawing;
using System.ComponentModel;
using System.IO;
using System.Drawing.Imaging;
using ImageGlass.Exceptions;

namespace ImageGlass.ThumbBar
{

    /// <summary>
    /// Complete class which generates thumbnails in every way you want!
    /// </summary>
    public class ThumbnailCreation : IDisposable
    {

        #region [ Constructors ]

        /// <summary>
        /// Create an instance of the ThumbnailCreation object
        /// </summary>
        public ThumbnailCreation()
        {
            // Constructor of your class...
        }

        #endregion

        #region [ Variable Declarations ]

        private bool _IsDisposed = false;
        private ScalingOptions m_ScalingOption = ScalingOptions.MaintainAspect;
        private Size m_DestinationSize = Size.Empty;
        private int m_MaxLength = 120;
        private FileFormats m_FileFormat = FileFormats.JPEG;
        private long m_Quality = 100;

        #endregion

        #region [ Property Assignments ]

        /// <summary>
        /// Gets the thumbnail scaling option. In order to set the scaling option, use the SetScalingOption method.
        /// </summary>
        [DefaultValue(ScalingOptions.MaintainAspect)]
        [Description("Gets or sets the way to scale the image to thumbnail size")]
        public ScalingOptions ScalingOption
        {
            get { return m_ScalingOption; }
        }

        /// <summary>
        /// Gets or sets the maximum image length of the thumbnail
        /// </summary>
        [DefaultValue(120)]
        [Description("Gets or sets the maximum image length for the thumbnail")]
        public int MaxImageLength
        {
            get { return m_MaxLength; }
后面还有 373 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。