Changeset View
Changeset View
Standalone View
Standalone View
plugins/filters/halftone/kis_halftone_filter.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | * @brief The kisHalftoneFilter class | 44 | * @brief The kisHalftoneFilter class | ||
45 | * This filter will allow the user to input an image and have it be approximated with | 45 | * This filter will allow the user to input an image and have it be approximated with | ||
46 | * a halftone pattern. https://en.wikipedia.org/wiki/Halftone | 46 | * a halftone pattern. https://en.wikipedia.org/wiki/Halftone | ||
47 | * | 47 | * | ||
48 | * The primary usecase of such a filter is for specialized printing techniques, but for | 48 | * The primary usecase of such a filter is for specialized printing techniques, but for | ||
49 | * many people the half-tone pattern also serves as a neutral pattern that is more pleasant | 49 | * many people the half-tone pattern also serves as a neutral pattern that is more pleasant | ||
50 | * than plain flat look. The half tone in this case also becomes a stylistic technique. | 50 | * than plain flat look. The half tone in this case also becomes a stylistic technique. | ||
51 | * | 51 | * | ||
52 | * Based on that, there's a few ways a user could want to use this techique: | 52 | * Based on that, there's a few ways a user could want to use this technique: | ||
53 | * 1. Per-component. Per patch, each component will have a halftone approximated. | 53 | * 1. Per-component. Per patch, each component will have a halftone approximated. | ||
54 | * 2. Intensity only. The relative luminosity of the patch is determined and will be used | 54 | * 2. Intensity only. The relative luminosity of the patch is determined and will be used | ||
55 | * for the approximation, resulting in a black/white pattern. | 55 | * for the approximation, resulting in a black/white pattern. | ||
56 | * 3. Intensity and then two colors mapped to the black/white pattern. | 56 | * 3. Intensity and then two colors mapped to the black/white pattern. | ||
57 | * | 57 | * | ||
58 | * On top of that, the pattern can be rotated, the shape can be chosen, and the user will want to | 58 | * On top of that, the pattern can be rotated, the shape can be chosen, and the user will want to | ||
59 | * decide whether or not to use antialiasing(as printers themselves give | 59 | * decide whether or not to use antialiasing(as printers themselves give | ||
60 | * inefficient results with anti-aliasing). | 60 | * inefficient results with anti-aliasing). | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |