setStrokeWithOpacity Method

Summary

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

Syntax
TypeScript
JavaScript
setStrokeWithOpacity = function( 
   context, 
   stroke, 
   opacity 
) 
static setStrokeWithOpacity( 
   context: CanvasRenderingContext2D, 
   stroke: AnnStroke, 
   opacity: number 
): void; 

Parameters

context

The destination canvas context.

stroke

The stroke to set.

opacity

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

Requirements

Target Platforms

Help Version 22.0.2023.1.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.JavaScript Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.