# rusden220/graphicimageprocessing architecture

> Architecture diagram of the GitHub repository rusden220/graphicimageprocessing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rusden220/graphicimageprocessing
- Repository: https://github.com/rusden220/graphicimageprocessing

## Overview

This is a Windows Forms bitmap editor with a separate graphics-effects library. The main workflow is to open or create an image, apply pixel edits, inspect a color histogram, and save the result. The editor keeps original and working bitmaps; brightness/contrast edits are computed from the original, while applying changes promotes the working image. A second form variant exposes effects-library functionality. The graph covers the editor and effects runtime, not the separate performance-test program. Relationships are limited to source references and calls shown in the excerpts or SOURCE INDEX.

Main entry points: [`GraphicImageProcessing/MainForm.cs`](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainForm.cs) (Main editor), [`GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs`](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs) (Effect execution), [`GraphicImageProcessing/MainFormNew.cs`](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainFormNew.cs) (Editor variant), [`GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs`](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs) (Effect functions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Image editor"]
  node_startup["Application startup<br/>[Program.cs]"]
  node_main["Main editor<br/>[MainForm.cs]"]
  node_newmain["Editor variant<br/>[MainFormNew.cs]"]
  node_effectsui["Effects editor<br/>[MainForm_v2.cs]"]
  node_brightness["Brightness dialog"]
  node_histogram["Color histogram<br/>[ColorHistogram.cs]"]
  node_menuprovider["Effects menu provider"]
end

subgraph group_processing["Pixel processing"]
  node_bitmapops["Bitmap operations"]
  node_pointer["Pixel pointer helper<br/>[ObjectPointer.cs]"]
end

subgraph group_effects["Effects library"]
  node_effectfunctions["Effect functions"]
  node_effectbase["Effect execution"]
  node_effectdata["Effect bitmap data"]
  node_noise["Noise effect<br/>[NoizeEffect.cs]"]
end

node_user(("User"))

node_user -.->|"uses"| node_main
node_startup -->|"launches"| node_newmain
node_main -->|"applies edits"| node_bitmapops
node_newmain -->|"applies edits"| node_bitmapops
node_main -->|"opens"| node_brightness
node_main -->|"opens"| node_histogram
node_newmain -->|"opens"| node_brightness
node_newmain -->|"opens"| node_histogram
node_brightness -->|"requests adjustment"| node_bitmapops
node_histogram -->|"reads bitmap"| node_main
node_bitmapops -->|"uses"| node_pointer
node_effectsui -->|"configures menu"| node_menuprovider
node_effectsui -->|"uses effects"| node_effectbase
node_menuprovider -->|"references"| node_effectfunctions
node_menuprovider -->|"references"| node_effectbase
node_effectfunctions -->|"applies effect"| node_effectbase
node_effectfunctions -->|"constructs"| node_noise
node_effectbase -->|"uses data"| node_effectdata
node_noise -->|"overrides effect"| node_effectbase
node_noise -->|"converts channels"| node_effectfunctions

click node_startup "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/Program.cs"
click node_main "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainForm.cs"
click node_newmain "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainFormNew.cs"
click node_effectsui "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainForm_v2.cs"
click node_brightness "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/BrightnessAndContrast.cs"
click node_histogram "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/ColorHistogram.cs"
click node_menuprovider "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainMenuEffectsProvider.cs"
click node_bitmapops "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/ImageProcessing/GraphicsProcessing.cs"
click node_pointer "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/Pointer/ObjectPointer.cs"
click node_effectfunctions "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs"
click node_effectbase "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs"
click node_effectdata "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/EffectsBase/GraphicsEffectsData.cs"
click node_noise "https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/Effects/NoizeEffect.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_startup,node_main,node_newmain,node_effectsui,node_brightness,node_histogram,node_menuprovider,node_user toneBlue
class node_bitmapops,node_pointer toneAmber
class node_effectfunctions,node_effectbase,node_effectdata,node_noise toneMint
```

## Components

### Image editor

- [Application startup](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/Program.cs): `GraphicImageProcessing/Program.cs`
- [Main editor](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainForm.cs): `GraphicImageProcessing/MainForm.cs`
- [Editor variant](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainFormNew.cs): `GraphicImageProcessing/MainFormNew.cs`
- [Effects editor](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainForm_v2.cs): `GraphicImageProcessing/MainForm_v2.cs`
- [Brightness dialog](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/BrightnessAndContrast.cs): `GraphicImageProcessing/BrightnessAndContrast.cs`
- [Color histogram](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/ColorHistogram.cs): `GraphicImageProcessing/ColorHistogram.cs`
- [Effects menu provider](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/MainMenuEffectsProvider.cs): `GraphicImageProcessing/MainMenuEffectsProvider.cs`

### Pixel processing

- [Bitmap operations](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/ImageProcessing/GraphicsProcessing.cs): `GraphicImageProcessing/ImageProcessing/GraphicsProcessing.cs`
- [Pixel pointer helper](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicImageProcessing/Pointer/ObjectPointer.cs): `GraphicImageProcessing/Pointer/ObjectPointer.cs`

### Effects library

- [Effect functions](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs): `GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs`
- [Effect execution](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs): `GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs`
- [Effect bitmap data](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/EffectsBase/GraphicsEffectsData.cs): `GraphicsLibrary/EffectsBase/GraphicsEffectsData.cs`
- [Noise effect](https://github.com/rusden220/graphicimageprocessing/blob/master/GraphicsLibrary/Effects/NoizeEffect.cs): `GraphicsLibrary/Effects/NoizeEffect.cs`

### Other components

- **User**

## Connections

- User → Main editor: uses
- Application startup → Editor variant: launches (evidence: `GraphicImageProcessing/Program.cs`)
- Main editor → Bitmap operations: applies edits (evidence: `GraphicImageProcessing/MainForm.cs`)
- Editor variant → Bitmap operations: applies edits (evidence: `GraphicImageProcessing/MainFormNew.cs`)
- Main editor → Brightness dialog: opens (evidence: `GraphicImageProcessing/MainForm.cs`)
- Main editor → Color histogram: opens (evidence: `GraphicImageProcessing/MainForm.cs`)
- Editor variant → Brightness dialog: opens (evidence: `GraphicImageProcessing/MainFormNew.cs`)
- Editor variant → Color histogram: opens (evidence: `GraphicImageProcessing/MainFormNew.cs`)
- Brightness dialog → Bitmap operations: requests adjustment (evidence: `GraphicImageProcessing/BrightnessAndContrast.cs`)
- Color histogram → Main editor: reads bitmap (evidence: `GraphicImageProcessing/ColorHistogram.cs`)
- Bitmap operations → Pixel pointer helper: uses (evidence: `GraphicImageProcessing/ImageProcessing/GraphicsProcessing.cs`)
- Effects editor → Effects menu provider: configures menu (evidence: `GraphicImageProcessing/MainForm_v2.cs`)
- Effects editor → Effect execution: uses effects (evidence: `GraphicImageProcessing/MainForm_v2.cs`)
- Effects menu provider → Effect functions: references (evidence: `GraphicImageProcessing/MainMenuEffectsProvider.cs`)
- Effects menu provider → Effect execution: references (evidence: `GraphicImageProcessing/MainMenuEffectsProvider.cs`)
- Effect functions → Effect execution: applies effect (evidence: `GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs`)
- Effect functions → Noise effect: constructs (evidence: `GraphicsLibrary/GraphicsFunction/GraphicsFunctions.cs`)
- Effect execution → Effect bitmap data: uses data (evidence: `GraphicsLibrary/EffectsBase/GraphicsEffectsBase.cs`)
- Noise effect → Effect execution: overrides effect (evidence: `GraphicsLibrary/Effects/NoizeEffect.cs`)
- Noise effect → Effect functions: converts channels (evidence: `GraphicsLibrary/Effects/NoizeEffect.cs`)
