Export (0) Print
Expand All
Expand Minimize

ShapeElement.ModifyLuminosity Method

Calculates the luminosity of the highlight for the shape.

Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in microsoft.visualstudio.modeling.diagrams.dll)

protected virtual int ModifyLuminosity (
	int currentLuminosity,
	DiagramClientView view
)
protected int ModifyLuminosity (
	int currentLuminosity, 
	DiagramClientView view
)
protected function ModifyLuminosity (
	currentLuminosity : int, 
	view : DiagramClientView
) : int

Parameters

currentLuminosity

The current luminosity for the shape.

view

The diagram view.

The formula used to create luminosity. The default formula is: if luminosity is >= 160, then luminosity = luminosity * 0.9; otherwise, luminosity = luminosity + 40.

Community Additions

ADD
Show:
© 2014 Microsoft