Files
OmaPhoto/src/Document/PixelAdjust.h
T
雷电芽衣andClaude c864304695
Release / deb (push) Canceled after 0s
Release / rpm (push) Canceled after 0s
Release / arch (push) Canceled after 0s
Release / publish (push) Canceled after 0s
OmaPhoto 1.0.0: the Linux port of Compositor
A layered image editor for Linux and Omarchy, ported from Compositor
(github.com/robbietilton/Compositor), whose Swift source is its
specification. It reads and writes Compositor's .comp projects.

Packages for Ubuntu, Fedora and Arch come from the release workflow;
scripts/install/ holds one install script per distribution family,
and flake.nix serves NixOS.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-26 00:44:52 -04:00

20 lines
902 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "Document/Selection.h"
#include <QImage>
#include <QTransform>
// Shared plumbing for whole-image adjustments.
namespace PixelAdjust {
// A small preview for the Layers panel, like an import's.
QImage thumbnail(const QImage &image);
// Selection coverage on the image's own pixel grid.
QImage coverage(const SelectionClip &selection, int width, int height, const QTransform &pixelToDocument);
// coverage × adjusted + (1 − coverage) × original.
QImage blend(const QImage &adjusted, const QImage &original, const SelectionClip &selection,
const QTransform &pixelToDocument, bool isMask);
// Core Image's Gaussian on stored values; `clamped` repeats the edge.
QImage gaussianBlur(const QImage &image, double sigma, bool clamped);
// Core Image's motion blur: a Gaussian taper along the angle.
QImage motionBlur(const QImage &image, double radius, double angle);
}