ShapeElementModifyLuminosity Method
 

Calculates the luminosity of the highlight for the shape.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

protected virtual int ModifyLuminosity(
	int currentLuminosity,
	DiagramClientView view
)
protected:
virtual int ModifyLuminosity(
	int currentLuminosity,
	DiagramClientView^ view
)
abstract ModifyLuminosity : 
        currentLuminosity:int *
        view:DiagramClientView -> int
override ModifyLuminosity : 
        currentLuminosity:int *
        view:DiagramClientView -> int
Protected Overridable Function ModifyLuminosity (
	currentLuminosity As Integer,
	view As DiagramClientView
) As Integer

Parameters

currentLuminosity
Type:

The current luminosity for the shape.

view
Type:

The diagram view.

Return Value

Type:

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.

Return to top