DiagramClientView::WorldToDevice Method (SizeD, Single)

 

Converts a size in world units to device units using the specified zoom factor.

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

public:
Size WorldToDevice(
	SizeD worldSize,
	float zoomFactor
)

Parameters

worldSize
Type: Microsoft.VisualStudio.Modeling.Diagrams::SizeD

The size in world units.

zoomFactor
Type: System::Single

The scaling factor. 1.0f is 100%.

Return Value

Type: System.Drawing::Size
Return to top
Show: