Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 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();
 }
Exemplo n.º 8
0
 public ImageEditorBaseDialog(RadImageEditorElement imageEditorElement)
 {
     this.InitializeComponent();
     this.imageEditorElement = imageEditorElement;
 }
Exemplo n.º 9
0
 public SharpenDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.radTrackBarValue.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting);
 }
Exemplo n.º 10
0
 public ImageEditorZoomElement(RadImageEditorElement imageEditorElement)
 {
     this.imageEditorElement = imageEditorElement;
     this.WireEvents();
 }
Exemplo n.º 11
0
 public ImageEditorCanvasElement(RadImageEditorElement imageEditorElement)
 {
     this.imageEditorElement = imageEditorElement;
 }
Exemplo n.º 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);
 }
Exemplo n.º 14
0
 public DrawDialog(RadImageEditorElement imageEditorElement)
     : base(imageEditorElement)
 {
     this.InitializeComponent();
     this.ApplySettings();
 }