Click here to Skip to main content
15,892,537 members
Articles / Desktop Programming / WPF

Image Processing is Done using WPF

Rate me:
Please Sign up or sign in to vote.
4.84/5 (19 votes)
6 Aug 2011CPOL6 min read 105.3K   16.2K   68  
Image Processing is done in a WPF application with some basic functionalities
#pragma checksum "..\..\..\InsertTextWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "6307CC926D7FCE0520FBCCD9719B7E56"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.235
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace ImageProcessingWPF4 {
    
    
    /// <summary>
    /// InsertTextWindow
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
    public partial class InsertTextWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
        
        
        #line 6 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl1;
        
        #line default
        #line hidden
        
        
        #line 7 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl2;
        
        #line default
        #line hidden
        
        
        #line 8 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl3;
        
        #line default
        #line hidden
        
        
        #line 9 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl4;
        
        #line default
        #line hidden
        
        
        #line 10 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl5;
        
        #line default
        #line hidden
        
        
        #line 11 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl6;
        
        #line default
        #line hidden
        
        
        #line 12 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl7;
        
        #line default
        #line hidden
        
        
        #line 13 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl8;
        
        #line default
        #line hidden
        
        
        #line 14 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl9;
        
        #line default
        #line hidden
        
        
        #line 15 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.TextBox txtText;
        
        #line default
        #line hidden
        
        
        #line 16 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.TextBox txtX;
        
        #line default
        #line hidden
        
        
        #line 17 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.TextBox txtY;
        
        #line default
        #line hidden
        
        
        #line 18 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbFonts;
        
        #line default
        #line hidden
        
        
        #line 19 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbFontSize;
        
        #line default
        #line hidden
        
        
        #line 20 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbFontStyles;
        
        #line default
        #line hidden
        
        
        #line 21 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbColors1;
        
        #line default
        #line hidden
        
        
        #line 22 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.TextBox txtAngle;
        
        #line default
        #line hidden
        
        
        #line 23 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.TextBox txtOpacity;
        
        #line default
        #line hidden
        
        
        #line 24 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.CheckBox chkGradient;
        
        #line default
        #line hidden
        
        
        #line 25 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.GroupBox grpGradient;
        
        #line default
        #line hidden
        
        
        #line 27 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl10;
        
        #line default
        #line hidden
        
        
        #line 28 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbColors2;
        
        #line default
        #line hidden
        
        
        #line 29 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lbl11;
        
        #line default
        #line hidden
        
        
        #line 30 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbGradientStyle;
        
        #line default
        #line hidden
        
        
        #line 33 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Button btnOK;
        
        #line default
        #line hidden
        
        
        #line 34 "..\..\..\InsertTextWindow.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Button btnCancel;
        
        #line default
        #line hidden
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Uri resourceLocater = new System.Uri("/ImageProcessingWPF4;component/inserttextwindow.xaml", System.UriKind.Relative);
            
            #line 1 "..\..\..\InsertTextWindow.xaml"
            System.Windows.Application.LoadComponent(this, resourceLocater);
            
            #line default
            #line hidden
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
            switch (connectionId)
            {
            case 1:
            
            #line 4 "..\..\..\InsertTextWindow.xaml"
            ((ImageProcessingWPF4.InsertTextWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
            
            #line default
            #line hidden
            return;
            case 2:
            this.lbl1 = ((System.Windows.Controls.Label)(target));
            return;
            case 3:
            this.lbl2 = ((System.Windows.Controls.Label)(target));
            return;
            case 4:
            this.lbl3 = ((System.Windows.Controls.Label)(target));
            return;
            case 5:
            this.lbl4 = ((System.Windows.Controls.Label)(target));
            return;
            case 6:
            this.lbl5 = ((System.Windows.Controls.Label)(target));
            return;
            case 7:
            this.lbl6 = ((System.Windows.Controls.Label)(target));
            return;
            case 8:
            this.lbl7 = ((System.Windows.Controls.Label)(target));
            return;
            case 9:
            this.lbl8 = ((System.Windows.Controls.Label)(target));
            return;
            case 10:
            this.lbl9 = ((System.Windows.Controls.Label)(target));
            return;
            case 11:
            this.txtText = ((System.Windows.Controls.TextBox)(target));
            return;
            case 12:
            this.txtX = ((System.Windows.Controls.TextBox)(target));
            return;
            case 13:
            this.txtY = ((System.Windows.Controls.TextBox)(target));
            return;
            case 14:
            this.cmbFonts = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 15:
            this.cmbFontSize = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 16:
            this.cmbFontStyles = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 17:
            this.cmbColors1 = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 18:
            this.txtAngle = ((System.Windows.Controls.TextBox)(target));
            return;
            case 19:
            this.txtOpacity = ((System.Windows.Controls.TextBox)(target));
            return;
            case 20:
            this.chkGradient = ((System.Windows.Controls.CheckBox)(target));
            
            #line 24 "..\..\..\InsertTextWindow.xaml"
            this.chkGradient.Checked += new System.Windows.RoutedEventHandler(this.chkGradient_Checked);
            
            #line default
            #line hidden
            
            #line 24 "..\..\..\InsertTextWindow.xaml"
            this.chkGradient.Unchecked += new System.Windows.RoutedEventHandler(this.chkGradient_Unchecked);
            
            #line default
            #line hidden
            return;
            case 21:
            this.grpGradient = ((System.Windows.Controls.GroupBox)(target));
            return;
            case 22:
            this.lbl10 = ((System.Windows.Controls.Label)(target));
            return;
            case 23:
            this.cmbColors2 = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 24:
            this.lbl11 = ((System.Windows.Controls.Label)(target));
            return;
            case 25:
            this.cmbGradientStyle = ((System.Windows.Controls.ComboBox)(target));
            return;
            case 26:
            this.btnOK = ((System.Windows.Controls.Button)(target));
            
            #line 33 "..\..\..\InsertTextWindow.xaml"
            this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click);
            
            #line default
            #line hidden
            return;
            case 27:
            this.btnCancel = ((System.Windows.Controls.Button)(target));
            
            #line 34 "..\..\..\InsertTextWindow.xaml"
            this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);
            
            #line default
            #line hidden
            return;
            }
            this._contentLoaded = true;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions