setFillOpacityAndBounds Method

Summary

Represents a helper method to set an AnnBrush in a HTML 5 canvas context.

Syntax
TypeScript
JavaScript
setFillOpacityAndBounds = function( 
   context, 
   brush, 
   opacity, 
   brushBounds 
) 
static setFillOpacityAndBounds( 
   context: CanvasRenderingContext2D, 
   brush: AnnBrush, 
   opacity: number, 
   brushBounds: LeadRectD 
): 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.

brushBounds

The brush boundary in pixels.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.