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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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