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); }
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); }
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(); }
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); }
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(); }
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); }
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(); }
public ImageEditorBaseDialog(RadImageEditorElement imageEditorElement) { this.InitializeComponent(); this.imageEditorElement = imageEditorElement; }
public SharpenDialog(RadImageEditorElement imageEditorElement) : base(imageEditorElement) { this.InitializeComponent(); this.radTrackBarValue.TickFormatting += new TickFormattingEventHandler(((ImageEditorBaseDialog)this).RadTrackBar_TickFormatting); }
public ImageEditorZoomElement(RadImageEditorElement imageEditorElement) { this.imageEditorElement = imageEditorElement; this.WireEvents(); }
public ImageEditorCanvasElement(RadImageEditorElement imageEditorElement) { this.imageEditorElement = imageEditorElement; }
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); }
public DrawDialog(RadImageEditorElement imageEditorElement) : base(imageEditorElement) { this.InitializeComponent(); this.ApplySettings(); }