# ralphwasnotfound/print-and-snap architecture

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

- Interactive diagram: https://gitdiagram.com/ralphwasnotfound/print-and-snap
- Repository: https://github.com/ralphwasnotfound/print-and-snap

## Overview

PrintAndSnap is a Windows kiosk application for printing documents and photos. Users select a print workflow, upload or capture files, configure document or photo output, pay through connected payment hardware, and send jobs to a printer. The graph preserves both document and photo capabilities, including photo editing and layout, but some links are omitted because excerpts do not show their invocation; the README is empty and several core modules were not excerpted.

Main entry points: [`PrintAndSnap.cs`](https://github.com/ralphwasnotfound/print-and-snap/blob/main/PrintAndSnap.cs) (Kiosk workflows), [`Services/DocumentPrinting/DocumentPrinting.cs`](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/DocumentPrinting.cs) (Document printing), [`Services/PhotoPrinting/PhotoPrinting.cs`](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoPrinting.cs) (Photo printing), [`Services/PaymentController.cs`](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PaymentController.cs) (Payment controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_kiosk["Kiosk UI"]
  node_program["App startup<br/>[Program.cs]"]
  node_ui["Kiosk workflows<br/>[PrintAndSnap.cs]"]
end

subgraph group_docs["Document Printing"]
  node_doc_upload["Document upload<br/>[UploadServices.cs]"]
  node_doc_pricing["Page pricing<br/>[PricingService.cs]"]
  node_doc_print["Document printing"]
  node_printer_mgr["Printer status<br/>[PrinterManager.cs]"]
end

subgraph group_photos["Photo Printing"]
  node_photo_upload["Photo upload"]
  node_photo_camera["Camera capture<br/>[CameraServices.cs]"]
  node_photo_service["Photo operations<br/>[PhotoServices.cs]"]
  node_background["Background removal"]
  node_filters["Photo filters<br/>[FilterServices.cs]"]
  node_frames["Photo frames<br/>[FrameServices.cs]"]
  node_themes["FUN themes<br/>[FunThemeService.cs]"]
  node_suits["Suit overlays"]
  node_layout["Photo layouts"]
  node_photo_print["Photo printing<br/>[PhotoPrinting.cs]"]
end

subgraph group_hardware["Device Services"]
  node_payment["Payment controller"]
end

node_customer(("Kiosk user"))
node_printer["Physical printer"]
node_payment_hw["Payment hardware"]

node_program -->|"launches"| node_ui
node_customer -->|"uses"| node_ui
node_ui -->|"starts upload"| node_doc_upload
node_ui -->|"starts upload"| node_photo_upload
node_ui -->|"calculates price"| node_doc_pricing
node_doc_print -->|"parses ranges"| node_doc_pricing
node_ui -->|"prints documents"| node_doc_print
node_ui -->|"checks printer"| node_printer_mgr
node_ui -->|"controls payment"| node_payment
node_payment -->|"serial commands"| node_payment_hw
node_ui -->|"captures photos"| node_photo_camera
node_ui -->|"processes photos"| node_photo_service
node_ui -->|"removes background"| node_background
node_ui -->|"applies filters"| node_filters
node_ui -->|"adds frames"| node_frames
node_ui -->|"applies themes"| node_themes
node_ui -->|"adds overlays"| node_suits
node_ui -->|"builds layouts"| node_layout
node_ui -->|"prints photos"| node_photo_print
node_doc_print -.->|"submits job"| node_printer
node_photo_print -.->|"submits job"| node_printer

click node_program "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Program.cs"
click node_ui "https://github.com/ralphwasnotfound/print-and-snap/blob/main/PrintAndSnap.cs"
click node_doc_upload "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/UploadServices.cs"
click node_doc_pricing "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/PricingService.cs"
click node_doc_print "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/DocumentPrinting.cs"
click node_printer_mgr "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/PrinterManager.cs"
click node_payment "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PaymentController.cs"
click node_photo_upload "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoUploadServices.cs"
click node_photo_camera "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/CameraServices.cs"
click node_photo_service "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoServices.cs"
click node_background "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/BackGroundRemovalService.cs"
click node_filters "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FilterServices.cs"
click node_frames "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FrameServices.cs"
click node_themes "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FunThemeService.cs"
click node_suits "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/SuitOverlayService.cs"
click node_layout "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoLayoutServices.cs"
click node_photo_print "https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoPrinting.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_program,node_ui,node_customer toneBlue
class node_doc_upload,node_doc_pricing,node_doc_print,node_printer_mgr toneAmber
class node_photo_upload,node_photo_camera,node_photo_service,node_background,node_filters,node_frames,node_themes,node_suits,node_layout,node_photo_print toneMint
class node_payment toneRose
class node_printer,node_payment_hw toneIndigo
```

## Components

### Kiosk UI

- [App startup](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Program.cs): `Program.cs`
- [Kiosk workflows](https://github.com/ralphwasnotfound/print-and-snap/blob/main/PrintAndSnap.cs): `PrintAndSnap.cs`

### Document Printing

- [Document upload](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/UploadServices.cs): `Services/DocumentPrinting/UploadServices.cs`
- [Page pricing](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/PricingService.cs): `Services/DocumentPrinting/PricingService.cs`
- [Document printing](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/DocumentPrinting.cs): `Services/DocumentPrinting/DocumentPrinting.cs`
- [Printer status](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/DocumentPrinting/PrinterManager.cs): `Services/DocumentPrinting/PrinterManager.cs`

### Photo Printing

- [Photo upload](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoUploadServices.cs): `Services/PhotoPrinting/PhotoUploadServices.cs`
- [Camera capture](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/CameraServices.cs): `Services/PhotoPrinting/CameraServices.cs`
- [Photo operations](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoServices.cs): `Services/PhotoPrinting/PhotoServices.cs`
- [Background removal](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/BackGroundRemovalService.cs): `Services/PhotoPrinting/BackGroundRemovalService.cs`
- [Photo filters](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FilterServices.cs): `Services/PhotoPrinting/FilterServices.cs`
- [Photo frames](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FrameServices.cs): `Services/PhotoPrinting/FrameServices.cs`
- [FUN themes](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/FunThemeService.cs): `Services/PhotoPrinting/FunThemeService.cs`
- [Suit overlays](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/SuitOverlayService.cs): `Services/PhotoPrinting/SuitOverlayService.cs`
- [Photo layouts](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoLayoutServices.cs): `Services/PhotoPrinting/PhotoLayoutServices.cs`
- [Photo printing](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PhotoPrinting/PhotoPrinting.cs): `Services/PhotoPrinting/PhotoPrinting.cs`

### Device Services

- [Payment controller](https://github.com/ralphwasnotfound/print-and-snap/blob/main/Services/PaymentController.cs): `Services/PaymentController.cs`

### Other components

- **Kiosk user**
- **Physical printer**
- **Payment hardware**

## Connections

- App startup → Kiosk workflows: launches (evidence: `Program.cs`)
- Kiosk user → Kiosk workflows: uses
- Kiosk workflows → Document upload: starts upload (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo upload: starts upload (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Page pricing: calculates price (evidence: `PrintAndSnap.cs`)
- Document printing → Page pricing: parses ranges (evidence: `Services/DocumentPrinting/DocumentPrinting.cs`)
- Kiosk workflows → Document printing: prints documents (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Printer status: checks printer (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Payment controller: controls payment (evidence: `PrintAndSnap.cs`)
- Payment controller → Payment hardware: serial commands (evidence: `Services/PaymentController.cs`)
- Kiosk workflows → Camera capture: captures photos (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo operations: processes photos (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Background removal: removes background (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo filters: applies filters (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo frames: adds frames (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → FUN themes: applies themes (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Suit overlays: adds overlays (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo layouts: builds layouts (evidence: `PrintAndSnap.cs`)
- Kiosk workflows → Photo printing: prints photos (evidence: `PrintAndSnap.cs`)
- Document printing → Physical printer: submits job
- Photo printing → Physical printer: submits job
