#include <ImageGradientModification.h>
Public Member Functions | |
ModifiedImageRegion (const ImageGradientSizeData &imageData) | |
void | AddPoint (const PixelIndex &pixelIndex) |
Add a pixel's pixel index into the dirty region. | |
AZ::Aabb | GetDirtyRegion () |
bool | IsModified () const |
Returns true if there is a dirty region, false if there isn't. | |
Handles all of the calculations for figuring out the dirty region AABB for the image gradient based on all its settings. Depending on the tiling and gradient transform settings, painting one pixel on an image can result in dirty regions that are much larger than the one pixel, potentially even infinite in size if the image settings are "mirror" or "repeat".
AZ::Aabb GradientSignal::ModifiedImageRegion::GetDirtyRegion | ( | ) |
Calculate the dirty region that reflects everywhere that's changed. The output dirty region accounts for image repeats (via tiling / frequency zoom / scale), transform wrapping modes, rotation, and bilinear filtering.