MCPcopy Create free account
hub / github.com/Tencent/libpag / GetDropShadowStyle

Function GetDropShadowStyle

exporter/src/export/data/LayerStyle.cpp:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static pag::LayerStyle* GetDropShadowStyle(const AEGP_StreamRefH& streamHandle) {
76 auto style = new pag::DropShadowStyle();
77
78 style->blendMode =
79 GetProperty(streamHandle, "dropShadow/mode2", AEStreamParser::StyleBlendModeParser);
80 style->color = GetProperty(streamHandle, "dropShadow/color", AEStreamParser::ColorParser);
81 style->opacity =
82 GetProperty(streamHandle, "dropShadow/opacity", AEStreamParser::Opacity0_100Parser);
83 style->angle =
84 GetProperty(streamHandle, "dropShadow/localLightingAngle", AEStreamParser::FloatParser);
85 style->distance = GetProperty(streamHandle, "dropShadow/distance", AEStreamParser::FloatParser);
86 style->size = GetProperty(streamHandle, "dropShadow/blur", AEStreamParser::FloatParser);
87 style->spread = GetProperty(streamHandle, "dropShadow/chokeMatte", AEStreamParser::PercentParser);
88 return style;
89}
90
91static pag::LayerStyle* GetGradientOverlayStyle(const AEGP_StreamRefH& streamHandle) {
92 auto style = new pag::GradientOverlayStyle();

Callers 1

GetLayerStyleByTypeFunction · 0.85

Calls 1

GetPropertyFunction · 0.85

Tested by

no test coverage detected