GraphicParams Class

The "cooked" material and symbology for a RenderGraphic. This determines the appearance (e.g. texture, color, width, linestyle, etc.) used to draw Geometry.

Methods

Name Description
constructor(): GraphicParams    
clone(out?: GraphicParams): GraphicParams    
setFillTransparency(transparency: number): void Set the transparency of the fill color, where 0=fully opaque and 255=full transparent.  
setLineTransparency(transparency: number): void Set the transparency of the line color, where 0=fully opaque and 255=full transparent.  
fromBlankingFill(fillColor: ColorDef): GraphicParams Static Create a GraphicParams with blanking fill of the specified color.  
fromSymbology(lineColor: ColorDef, fillColor: ColorDef, lineWidth: number, linePixels: LinePixelsLinePixels.Solid): GraphicParams Static Conveniently create a GraphicParams the most commonly-used properties.  

Properties

Name Type Description
fillColor ColorDef The color of surfaces.  
fillFlags FillFlags Describes how fill is applied to planar regions in wireframe mode.  
gradient Gradient.Symb | undefined Gradient fill applied to surfaces.  
lineColor ColorDef The color of curves and edges.  
linePixels LinePixels The line pattern applied to curves and edges.  
material RenderMaterial | undefined Material applied to surfaces.  
rasterWidth number The width, in pixels, of curves and edges.  

Defined in

Last Updated: 14 November, 2024