Photo_Editor_Application.Picture Class
Picture class stores all image related data. It also provides the basic functionality.

Access: Public
Base Classes: GraphicsComponent
  Members Description  
    loadedImage    
    loadFileDialog    
    saveFileDialog    
    Picture Picture Class contructor. The image class stores the image and is responsible for basic image operations.

 
    LoadImage Opens Open File Dialog and loads the selected image.

 
    CropImage Method called from CropDialog. The current shown image is cropped to the size provided in the parameters. The cropping is done with a rectangle which center is put on the center of the image.

 
    RotateFlipImage Flips and/or rotates the Image

 
    SaveImage Saves the current image used as test hook.

 
    LoadedImage Accessor to get the currently loaded image.

 
    GraphicsComponentList Test hook to get the List.

 
    LoadImage Opens the file with the provided Name.

 
    SaveImage Saves the current image with the provided fileName.

 
    Draw The Draw method walks through the list of created components and calls the Draw method for each of the components.

 
    Add Method adds a new component to the list of components.

 
    Remove Removes a component form the list of components.

 
    ClearComponentList Clears the list of components.

 
    PositionIsComponent Goes through the list of components and checks if component is picked. If component returns true the component is returned to the caller.

 
    ApplyPictureComponents Draws the components in the list into the Graphics object of the loaded picture to make changes permanent.

 
    Reset Restores the original loaded image and clears the list of components.

 
    compList    
    backUpImage