Пример #1
0
 public RoundCornersDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.radTrackBarRadius.TickFormatting          += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
     this.radTrackBarBorderThickness.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
 }
Пример #2
0
 public ContrastDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.radTrackBarBrightness.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
     this.radTrackBarContrast.TickFormatting   += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
 }
Пример #3
0
 public ResizeCanvasDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.originalSize              = imageEditorElement.CurrentBitmap.Size;
     this.radSpinEditorWidth.Value  = (Decimal)this.originalSize.Width;
     this.radSpinEditorHeight.Value = (Decimal)this.originalSize.Height;
     this.WireEvents();
 }
Пример #4
0
 public DrawTextDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.radTrackBarFontSize.TickFormatting           += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
     this.radTrackBarRotation.TickFormatting           += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
     this.radTrackBarHorizontalPosition.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
     this.radTrackBarVerticalPosition.TickFormatting   += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
 }
Пример #5
0
 public DrawShapeDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     foreach (object obj in Enum.GetValues(typeof(ShapeType)))
     {
         this.radDropDownListShape.Items.Add(new RadListDataItem(LocalizationProvider <ImageEditorLocalizationProvider> .CurrentProvider.GetLocalizedString("ShapeType" + obj.ToString()), obj));
     }
     this.radDropDownListShape.SelectedIndex = 1;
     this.ApplySettings();
 }
Пример #6
0
        public virtual ImageEditorBaseDialog CreateDialog(
            System.Type type,
            RadImageEditorElement imageEditorElement)
        {
            ImageEditorBaseDialog editorBaseDialog = type.GetConstructor(new System.Type[1] {
                typeof(RadImageEditorElement)
            }).Invoke(new object[1] {
                (object)imageEditorElement
            }) as ImageEditorBaseDialog;

            editorBaseDialog.RightToLeft   = imageEditorElement.RightToLeft ? RightToLeft.Yes : RightToLeft.No;
            editorBaseDialog.StartPosition = FormStartPosition.Manual;
            editorBaseDialog.Location      = imageEditorElement.ElementTree.Control.PointToScreen(new Point(imageEditorElement.CommandsElementWidth, 0));
            return(editorBaseDialog);
        }
Пример #7
0
 public ResizeDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.originalSize                        = this.ImageEditorElement.CurrentBitmap.Size;
     this.originalAspectRatio                 = (double)this.ImageEditorElement.CurrentBitmap.Width / (double)this.ImageEditorElement.CurrentBitmap.Height;
     this.radSpinEditorWidth.Maximum          = (Decimal)Math.Max(this.originalSize.Width, (int)short.MaxValue);
     this.radSpinEditorHeight.Maximum         = (Decimal)Math.Max(this.originalSize.Height, (int)short.MaxValue);
     this.radSpinEditorWidth.Value            = (Decimal)this.originalSize.Width;
     this.radSpinEditorHeight.Value           = (Decimal)this.originalSize.Height;
     this.radSpinEditorRelativeWidth.Value    = new Decimal(100);
     this.radSpinEditorRelativeHeight.Value   = new Decimal(100);
     this.radSpinEditorRelativeWidth.Minimum  = new Decimal(1) / this.radSpinEditorWidth.Value * new Decimal(100);
     this.radSpinEditorRelativeWidth.Maximum  = this.radSpinEditorWidth.Maximum / this.radSpinEditorWidth.Value * new Decimal(100);
     this.radSpinEditorRelativeHeight.Minimum = new Decimal(1) / this.radSpinEditorHeight.Value * new Decimal(100);
     this.radSpinEditorRelativeHeight.Maximum = this.radSpinEditorHeight.Maximum / this.radSpinEditorHeight.Value * new Decimal(100);
     this.UnwireEvents();
     this.WireEvents();
 }
Пример #8
0
 public ImageEditorBaseDialog(RadImageEditorElement imageEditorElement)
 {
     this.InitializeComponent();
     this.imageEditorElement = imageEditorElement;
 }
Пример #9
0
 public SharpenDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.radTrackBarValue.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
 }
Пример #10
0
 public ImageEditorZoomElement(RadImageEditorElement imageEditorElement)
 {
     this.imageEditorElement = imageEditorElement;
     this.WireEvents();
 }
Пример #11
0
 public ImageEditorCanvasElement(RadImageEditorElement imageEditorElement)
 {
     this.imageEditorElement = imageEditorElement;
 }
Пример #12
0
 protected override void CreateChildItems(RadElement parent)
 {
     base.CreateChildItems(parent);
     this.imageEditorElement = this.CreateImageEditorElement();
     parent.Children.Add((RadElement)this.imageEditorElement);
 }
 public ImageEditorCommandsElement(RadImageEditorElement owner)
 {
     this.imageEditorElement = owner;
     LocalizationProvider <ImageEditorLocalizationProvider> .CurrentProviderChanged += new EventHandler(this.ImageEditorLocalizationProvider_CurrentProviderChanged);
 }
Пример #14
0
 public DrawDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.ApplySettings();
 }