Merge pull request #10694 from M393/image-opacity

Draw image with configured opacity
This commit is contained in:
Tim Schaub authored and GitHub committed 2020-02-19 06:59:33 -07:00
commit d7aa47eedc
4 files changed
+80

No files matched your search

+3
View File
@@ -404,6 +404,9 @@ export function drawImageOrLabel(context,
transform, opacity, labelOrImage, originX, originY, w, h, x, y, scale) {
context.save();
if (opacity !== 1) {
context.globalAlpha *= opacity;
}
if (transform) {
context.setTransform.apply(context, transform);
}