C# Класс Smrf.NodeXL.Visualization.Wpf.GraphImageScaler

Sets the graph scale on a NodeXLControl and later restores the original graph scale.
This prepares the NodeXLControl for being saved as an image. It adjusts the control's graph scale so that the graph's vertices and edges will be the same relative size in the image that they are in the control.

Call SetGraphScale before saving the image, then call to restore the original graph scale.

Наследование: Object
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_dOriginalGraphScale Double
m_dOriginalGroupLabelScale Double
m_oNodeXLControl NodeXLControl

Открытые методы

Метод Описание
GraphImageScaler ( NodeXLControl nodeXLControl ) : System

Initializes a new instance of the GraphImageScaler class.

RestoreGraphScale ( ) : void
SetGraphScale ( Int32 bitmapWidthPx, Int32 bitmapHeightPx, Double screenDpi ) : void

Защищенные методы

Метод Описание
PinScale ( Double dScale ) : Double

Приватные методы

Метод Описание
AssertValid ( ) : void

Описание методов

GraphImageScaler() публичный Метод

Initializes a new instance of the GraphImageScaler class.
public GraphImageScaler ( NodeXLControl nodeXLControl ) : System
nodeXLControl NodeXLControl /// The control for which a graph image will be created. ///
Результат System

PinScale() защищенный Метод

protected PinScale ( Double dScale ) : Double
dScale Double
Результат Double

RestoreGraphScale() публичный Метод

public RestoreGraphScale ( ) : void
Результат void

SetGraphScale() публичный Метод

public SetGraphScale ( Int32 bitmapWidthPx, Int32 bitmapHeightPx, Double screenDpi ) : void
bitmapWidthPx System.Int32
bitmapHeightPx System.Int32
screenDpi Double
Результат void

Описание свойств

m_dOriginalGraphScale защищенное свойство

protected Double m_dOriginalGraphScale
Результат Double

m_dOriginalGroupLabelScale защищенное свойство

protected Double m_dOriginalGroupLabelScale
Результат Double

m_oNodeXLControl защищенное свойство

protected NodeXLControl,Smrf.NodeXL.Visualization.Wpf m_oNodeXLControl
Результат NodeXLControl