Click here to Skip to main content
15,883,825 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 105K   16.2K   68  
Image Processing is done in a WPF application with some basic functionalities
<Window x:Class="ImageProcessingWPF4.CropWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Crop" Height="222" Width="262" ResizeMode="NoResize" Topmost="True" WindowStartupLocation="CenterScreen" ShowActivated="True" ShowInTaskbar="False" WindowStyle="ToolWindow">
    <Grid Margin="0,0,0,0" Background="#FFF0F0F0">
        <Label Content="X:" HorizontalAlignment="Left" Margin="29,15,0,0" Name="lbl1" VerticalAlignment="Top" />
        <Label Content="Y:" HorizontalAlignment="Left" Margin="29,45,0,0" Name="lbl2" VerticalAlignment="Top" />
        <Label Content="Width:" HorizontalAlignment="Left" Margin="29,75,0,0" Name="lbl3" VerticalAlignment="Top" />
        <Label Content="Height:" HorizontalAlignment="Left" Margin="29,105,0,0" Name="lbl4" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="88,17,0,0" Name="txtX" VerticalAlignment="Top" Width="120" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="88,47,0,0" Name="txtY" VerticalAlignment="Top" Width="120" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="88,77,0,0" Name="txtWidth" VerticalAlignment="Top" Width="120" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="88,107,0,0" Name="txtHeight" VerticalAlignment="Top" Width="120" />
        <Button Content="OK" Height="23" HorizontalAlignment="Left" IsDefault="True" Name="btnOK" VerticalAlignment="Bottom" Width="75" Margin="42,0,0,12" Click="btnOK_Click" />
        <Button Content="Cancel" Height="23" IsCancel="True" HorizontalAlignment="Left" Name="btnCancel" VerticalAlignment="Bottom" Width="75" Margin="128,0,0,12" Click="btnCancel_Click" />
    </Grid>
</Window>

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