mirror of
https://github.com/openharmony/graphic_utils.git
synced 2026-07-19 08:24:45 -04:00
Description: separate extend function of canvas
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6CYAP Feature or Bugfix: Feature Binary Source:No Signed-off-by: lancer <haoshuo@huawei.com>
This commit is contained in:
@@ -42,7 +42,7 @@ const uint16_t COLOR_LUT_SIZE = 512;
|
||||
class FillGradientLut {
|
||||
#if defined(GRAPHIC_ENABLE_GRADIENT_FILL_FLAG) && GRAPHIC_ENABLE_GRADIENT_FILL_FLAG
|
||||
public:
|
||||
FillGradientLut() : colorType_(COLOR_LUT_SIZE), colorLutSize_(COLOR_LUT_SIZE), colorProfile_(COLOR_PROFILE_SIZE) {}
|
||||
FillGradientLut() : colorProfile_(COLOR_PROFILE_SIZE), colorType_(COLOR_LUT_SIZE), colorLutSize_(COLOR_LUT_SIZE) {}
|
||||
/**
|
||||
* @brief Remove all colors
|
||||
* @since 1.0
|
||||
|
||||
@@ -64,8 +64,8 @@ public:
|
||||
lineCap_(BUTT_CAP),
|
||||
#endif
|
||||
#if defined(GRAPHIC_ENABLE_LINEJOIN_FLAG) && GRAPHIC_ENABLE_LINEJOIN_FLAG
|
||||
miterLimitMeasure_(DEFAULTMITERLIMIT),
|
||||
lineJoin_(MITER_JOIN),
|
||||
miterLimitMeasure_(DEFAULTMITERLIMIT),
|
||||
#endif
|
||||
approxScaleRadio_(1.0f) {}
|
||||
|
||||
@@ -436,8 +436,6 @@ private:
|
||||
float strokeWidthUsingAbs_;
|
||||
float strokeWidthPercentDivision_;
|
||||
int32_t strokeWidthSignal_;
|
||||
|
||||
float approxScaleRadio_;
|
||||
#if defined(GRAPHIC_ENABLE_LINECAP_FLAG) && GRAPHIC_ENABLE_LINECAP_FLAG
|
||||
LineCap lineCap_;
|
||||
#endif
|
||||
@@ -445,6 +443,7 @@ private:
|
||||
LineJoin lineJoin_;
|
||||
float miterLimitMeasure_;
|
||||
#endif
|
||||
float approxScaleRadio_;
|
||||
};
|
||||
} // namespace OHOS
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user