GifRecorder/Pages/CaptionOptions.cs

(开头部分) 11KB

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

using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using ScreenToGif.Properties;

namespace ScreenToGif.Pages
{
    /// <summary>
    /// Caption Option.
    /// </summary>
    public partial class CaptionOptions : Form
    {
        #region Variables

        private readonly int _imageHeight;
        private bool _starting = true;

        #endregion

        /// <summary>
        /// The Caption Options form.
        /// </summary>
        /// <param name="height">The image height</param>
        public CaptionOptions(int height)
        {
            InitializeComponent();

            _imageHeight = height;

            #region Localization of Labels

            this.Text = Resources.Con_CaptionOptions;
            lblSizeType.Text = Resources.Label_FontSizeAs;
            lblFontTitle.Text = Resources.Label_Font;
            lblFontSize2.Text = Resources.Label_FontSize;
            lblVertical.Text = Resources.Label_VerticalAlign;
            lblPercentageSize.Text = Resources.Label_AsImageHeight;
            lblHorizontal.Text = Resources.Label_HorizontalAlign;
            lblThick.Text = Resources.Label_Thickness;
            lblPointsDesc.Text = Resources.Label_Points;

            #endregion
        }

        private void CaptionOptions_Load(object sender, EventArgs e)
        {
            cbHatchBrush.DataSource = Enum.GetValues(typeof(HatchStyle));
            cbHatchBrush.SelectedItem = Settings.Default.captionHatch;

            rbPercentage.Checked = Settings.Default.fontSizeAsPercentage;
            rbPoint.Checked = !rbPercentage.Checked;
            rbPercentage_CheckedChanged(null, null);

            #region Font

            fontDialog.Font = Settings.Default.fontCaption;
            pbFontColor.BackColor = colorDialog.Color = fontDialog.Color = Settings.Default.fontCaptionColor;

            lblFont.Text = fontDialog.Font.Name + "; ";
后面还有 328 行代码,解锁后查看完整代码

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

AI 解读

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

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