This topic has not yet been rated - Rate this topic

ShapeElement.ModifyLuminosity Method

Calculates the luminosity of the highlight for the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
protected virtual int ModifyLuminosity(
	int currentLuminosity,
	DiagramClientView view
)

Parameters

currentLuminosity
Type: System.Int32
The current luminosity for the shape.
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
The diagram view.

Return Value

Type: System.Int32
New luminosity value.

The formula that creates luminosity. By default, the formula is: if luminosity is >= 160, then luminosity = luminosity * 0.9; otherwise, luminosity = luminosity + 40.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ