ModifyLuminosity Method
Domain-Specific Language Tools Reference
ShapeElement..::.ModifyLuminosity Method

Updated: November 2007

Calculates the luminosity of the highlight for the shape.

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

Visual Basic (Declaration)
Protected Overridable Function ModifyLuminosity ( _
    currentLuminosity As Integer, _
    view As DiagramClientView _
) As Integer
Visual Basic (Usage)
Dim currentLuminosity As Integer
Dim view As DiagramClientView
Dim returnValue As Integer

returnValue = Me.ModifyLuminosity(currentLuminosity, _
    view)
C#
protected virtual int ModifyLuminosity(
    int currentLuminosity,
    DiagramClientView view
)
Visual C++
protected:
virtual int ModifyLuminosity(
    int currentLuminosity, 
    DiagramClientView^ view
)
JScript
protected function ModifyLuminosity(
    currentLuminosity : int, 
    view : DiagramClientView
) : int

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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker