Photo_Editor_Application.PhotoEditorForm Class
Summary description for Form1.

Access: Public
Base Classes: Form
  Members Description  
    MainMenu    
    FileMenu    
    OpenFile    
    components Required designer variable.

 
    customScrollableControl Holds a custom scrollable control object.

 
    tabControl    
    basicImageOperations    
    cropImageButton    
    flipVerticalButton    
    flipHorizontalButton    
    rotateClockButton    
    rotateCClockButton    
    saveMenu    
    Overlays    
    PictureObject Holds a Picture Object.

 
    groupBox1    
    RectangleButton    
    CircleButton    
    ROIButton    
    EraseButton    
    LineButton    
    TextButton    
    ApplyButton    
    ResetButton    
    menuItem1    
    menuItem2    
    penNumericUpDown    
    lineThickness    
    selectColorButton    
    EllipseFrameRadioButton    
    RectFrameRadioButton    
    groupBox2    
    applicationDirectory    
    GetApplicationDirectory Accessor to the Application directory.

 
    inputTextBox    
    PhotoEditorForm Constructor.

 
    OnPaint Custom paint method.

 
    Dispose Clean up any resources being used.

 
    InitializeComponent Required method for Designer support - do not modify the contents of this method with the code editor.

 
    Main The main entry point for the application.

 
    OpenFile_Click Called if the Load menu item was selected. Calls LoadImage on Picture class.

 
    DisplayImage Method used to set the image displayed in the custom control to the current picture object image. Invalidates the custom control.

 
    cropImageButton_Click Opens theCrop Dialog box window to allow the user to specify a new image size. The image will be cropped to the width and height where the cropped image is taken from the middle of the original image.

 
    flipHorizontalButton_Click Calls the RoatateFlipImage method of the Image class

 
    flipVerticalButton_Click Calls the RotateFlipImage method of the Image class

 
    rotateClockButton_Click Calls the RotateFlipImage method of the Image class

 
    rotateCClockButton_Click Calls the RotateFlipImage method of the Image class

 
    saveMenu_Click Calls the SaveImage() method of the Image class

 
    resetButtons Convenience method to reset all buttons to default appearance and to reset toolSelected.

 
    toolSelection    
    toolSelected    
    RectangleButton_Click Sets the selected tool to RactangleTool if no tool was selected before. If a tool was selected before then the tool selection is reset to no tool.

 
    isDrawing    
    compObject    
    regionComponent    
    customScrollableControl_MouseDown    
    MyEventHandler    
    customScrollableControl_MouseMove    
    customScrollableControl_MouseUp    
    customScrollableControl_MouseEnter    
    customScrollableControl_MouseLeave    
    TextButton_Click Text Button was clicked and dialog is poped up for text input.

 
    customScrollableControl_Paint Overwrites the pait method. Updates the viewport coords and draws the graphic overlays.

 
    LineButton_Click Line tool is selected.

 
    CircleButton_Click Circle tool is selected.

 
    ROIButton_Click ROI tool selected.

 
    EraseButton_Click Erase button sets selection tool.

 
    ApplyButton_Click Applies the graphic overlays by burning them into the image. Burning done in picture class.

 
    ResetButton_Click Reset button, resets to the original loaded image. Functionality in Picture class is called.

 
    menuItem2_Click Exit button pressed, close application.

 
    customScrollableControl_Load    
    penNumericUpDown_ValueChanged Event handler for the NumericUpDown control, which enables the user to select the line width of the pen.

 
    selectColorButton_Click Opens a color dialog box to enable the user to select a color for the pen.

 
    RectFrameRadioButton_CheckedChanged Sets the currently selected tool to the RectangleFrameTool.

 
    EllipseFrameRadioButton_CheckedChanged Sets the currently selected tool to the EllipseFrameTool.