setFillWithOpacity Method

Summary

Represents a helper method to set an AnnBrush in a HTML 5 canvas context with the specified opacity.

Syntax
TypeScript
JavaScript
setFillWithOpacity = function( 
   context, 
   brush, 
   opacity 
) 
static setFillWithOpacity( 
   context: CanvasRenderingContext2D, 
   brush: AnnBrush, 
   opacity: number 
): void; 

Parameters

context

The destination canvas context.

brush

The brush to set.

opacity

The opacity to use. Values are from 0.0 to 1.0.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.JavaScript Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.