GetColorBoundsRect calculates rectangular bounds that fully encloses all pixels of the specified color if (findColor = true), all pixels that doesn't include the specified color (findColor = false). Determination holds for each pixel if (value & mask) == color.
Parameters |
Description |
UInt32 mask |
A hexadecimal value, specifying the bits of the color to consider. |
UInt32 color |
A hexadecimal value, specifying the ARGB color to match (if findColor is set to true) or not to match (if findColor is set to false). |
bool findColor |
If the value is set to true, returns the bounds of a color value in an image. If the value is set to false, returns the bounds of where this color doesn't exist in an image. |
The region of the image that is the specified color.