BlurHashExtensions extension

on

Properties

averageLinearRgb ColorTriplet
Returns the average linear RGB.
no setter
isBottomEdgeDark bool
Returns whether the bottom edge is considered dark. See BlurHashExtensions.isDarkAtY to set a custom threshold.
no setter
isBottomLeftCornerDark bool
Returns whether the bottom-left corner is considered dark. See BlurHashExtensions.isDarkAtPos to set a custom threshold.
no setter
isBottomRightCornerDark bool
Returns whether the bottom-right corner is considered dark. See BlurHashExtensions.isDarkAtPos to set a custom threshold.
no setter
isDark bool
Returns whether the average brightness is considered dark. See BlurHashExtensions.isAverageDark to set a custom threshold.
no setter
isLeftEdgeDark bool
Returns whether the left edge is considered dark. See BlurHashExtensions.isDarkAtX to set a custom threshold.
no setter
isRightEdgeDark bool
Returns whether the right edge is considered dark. See BlurHashExtensions.isDarkAtX to set a custom threshold.
no setter
isTopEdgeDark bool
Returns whether the top edge is considered dark. See BlurHashExtensions.isDarkAtY to set a custom threshold.
no setter
isTopLeftCornerDark bool
Returns whether the top-left corner is considered dark. See BlurHashExtensions.isDarkAtPos to set a custom threshold.
no setter
isTopRightCornerDark bool
Returns whether the top-right corner is considered dark. See BlurHashExtensions.isDarkAtPos to set a custom threshold.
no setter
mirroredHorizontally BlurHash
Mirrors the BlurHash horizontally.
no setter
mirroredVertically BlurHash
Mirrors the BlurHash vertically.
no setter
transposed BlurHash
Transposes the BlurHash.
no setter

Methods

isAverageDark({double? threshold}) bool
Returns whether the average brightness is considered dark.
isColorDark(ColorTriplet color, {double threshold = 0.3}) bool
Returns whether the given color is considered dark. The color must be given as a linear RGB color.
isDarkAtPos(double x, double y, {double? threshold}) bool
Returns whether the given point is considered dark.
isDarkAtX(double x, {double? threshold}) bool
Returns whether the given row is considered dark.
isDarkAtY(double y, {double? threshold}) bool
Returns whether the given row is considered dark.
isRectDark(Point<double> topLeftCorner, Point<double> bottomRightCorner, {double? threshold}) bool
Returns whether the given rectangular region is considered dark.
linearRgbAt(double x, double y) ColorTriplet
Returns linear RGB for a point.
linearRgbAtX(double x) ColorTriplet
Returns linear RGB for the given column.
linearRgbAtY(double y) ColorTriplet
Returns linear RGB for the given row.
linearRgbInRect(Point<double> topLeftCorner, Point<double> bottomRightCorner) ColorTriplet
Returns linear RGB for a rectangular region.