#include <image_filter.h>
Definition at line 20 of file image_filter.h.
◆ ~ImageFilter()
flutter::ImageFilter::~ImageFilter |
( |
| ) |
|
|
override |
◆ Create()
void flutter::ImageFilter::Create |
( |
Dart_Handle |
wrapper | ) |
|
|
static |
Definition at line 19 of file image_filter.cc.
19 {
21 auto res = fml::MakeRefCounted<ImageFilter>();
22 res->AssociateWithDartWrapper(wrapper);
23}
static void ThrowIfUIOperationsProhibited()
◆ filter()
const std::shared_ptr< const DlImageFilter > flutter::ImageFilter::filter |
( |
| ) |
const |
|
inline |
◆ FilterModeFromIndex()
Definition at line 43 of file image_filter.cc.
43 {
44 if (filterQualityIndex <= 0) {
46 }
48}
◆ initBlur()
void flutter::ImageFilter::initBlur |
( |
double |
sigma_x, |
|
|
double |
sigma_y, |
|
|
DlTileMode |
tile_mode |
|
) |
| |
Definition at line 54 of file image_filter.cc.
56 {
58 tile_mode);
59}
static std::shared_ptr< DlImageFilter > Make(SkScalar sigma_x, SkScalar sigma_y, DlTileMode tile_mode)
static float SafeNarrow(double value)
◆ initColorFilter()
void flutter::ImageFilter::initColorFilter |
( |
ColorFilter * |
colorFilter | ) |
|
Definition at line 77 of file image_filter.cc.
77 {
80}
static std::shared_ptr< DlImageFilter > Make(const std::shared_ptr< const DlColorFilter > &filter)
#define FML_DCHECK(condition)
◆ initComposeFilter()
Definition at line 82 of file image_filter.cc.
82 {
85}
static std::shared_ptr< const DlImageFilter > Make(std::shared_ptr< const DlImageFilter > outer, std::shared_ptr< const DlImageFilter > inner)
◆ initDilate()
void flutter::ImageFilter::initDilate |
( |
double |
radius_x, |
|
|
double |
radius_y |
|
) |
| |
Definition at line 61 of file image_filter.cc.
61 {
62 filter_ =
64}
static std::shared_ptr< DlImageFilter > Make(SkScalar radius_x, SkScalar radius_y)
◆ initErode()
void flutter::ImageFilter::initErode |
( |
double |
radius_x, |
|
|
double |
radius_y |
|
) |
| |
Definition at line 66 of file image_filter.cc.
66 {
67 filter_ =
69}
static std::shared_ptr< DlImageFilter > Make(SkScalar radius_x, SkScalar radius_y)
◆ initMatrix()
void flutter::ImageFilter::initMatrix |
( |
const tonic::Float64List & |
matrix4, |
|
|
int |
filter_quality_index |
|
) |
| |
Definition at line 71 of file image_filter.cc.
72 {
75}
static std::shared_ptr< DlImageFilter > Make(const SkMatrix &matrix, DlImageSampling sampling)
static DlImageSampling SamplingFromIndex(int filterQualityIndex)
SkSamplingOptions sampling
constexpr SkMatrix ToSkMatrix(const DlMatrix &matrix)
◆ RegisterNatives()
◆ SamplingFromIndex()
Definition at line 32 of file image_filter.cc.
32 {
33 if (filterQualityIndex < 0) {
35 } else if (static_cast<size_t>(filterQualityIndex) >=
38 } else {
40 }
41}
static const std::array< DlImageSampling, 4 > kFilterQualities
The documentation for this class was generated from the following files: