ZoomPanelZoomFactor Property |
Namespace: Ab2d.Controls
ZoomFactor gets or sets the zoom factor that defines how much the content of the ZoomPanel is scaled.
When ZoomFactor is 1, than the whole content will be shown in the ZoomPanel. If the content size is 100 x 100, this does not mean that the shown size will be also 100 x 100 - the shown size will depend of the size of ZoomPanel. It its size is 200 x 300, than the content's size will be 200 x 200.
When ZoomFactor is more than 1, the content is bigger - not the whole content is visible. Note that ZoomFactor is a one dimensional zoom factor. This means that when for example zoom factor is 2, only 50 x 50 pixels will be visible from the whole 100 x 100 - the width and height are both "scaled" by 2.
When ZoomFactor is less than 1, the content is smaller - there is an empty space added around the shown content.