This topic has not yet been rated - Rate this topic

ShapeElement.GetShapeLuminosity Method

Calculates the luminosity of the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public virtual Color GetShapeLuminosity(
	DiagramClientView view,
	Color color
)

Parameters

view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
The diagram view.
color
Type: System.Drawing.Color
The color of the shape.

Return Value

Type: System.Drawing.Color
Updated color.

Luminosity is based on the current color of the shape and whether the shape is highlighted.

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