1 2 /* 3 * Copyright (c) 2021 Huawei Device Co., Ltd. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef BLEND_MODE_H 18 #define BLEND_MODE_H 19 20 #ifdef WINDOWS_PLATFORM 21 #ifdef DIFFERENCE 22 #undef DIFFERENCE 23 #endif 24 #endif 25 26 namespace OHOS { 27 namespace Rosen { 28 namespace Drawing { 29 enum class BlendMode { 30 CLEAR, 31 SRC, 32 DST, 33 SRC_OVER, 34 DST_OVER, 35 SRC_IN, 36 DST_IN, 37 SRC_OUT, 38 DST_OUT, 39 SRC_ATOP, 40 DST_ATOP, 41 XOR, 42 PLUS, 43 MODULATE, 44 SCREEN, 45 OVERLAY, 46 DARKEN, 47 LIGHTEN, 48 COLOR_DODGE, 49 COLOR_BURN, 50 HARD_LIGHT, 51 SOFT_LIGHT, 52 DIFFERENCE, 53 EXCLUSION, 54 MULTIPLY, 55 HUE, 56 STATURATION, 57 COLOR_MODE, 58 LUMINOSITY, 59 }; 60 } // namespace Drawing 61 } // namespace Rosen 62 } // namespace OHOS 63 #endif 64