ImageGear .NET - Updated
UpdateZoomFrom Method (ImGearPresentationPageDisplay)
Example 




ImageGear24.Presentation Assembly > ImageGear.Display Namespace > ImGearPresentationPageDisplay Class : UpdateZoomFrom Method
ImGearZoomInfo object with new zoom attributes.
Updates image zoom attributes.
Syntax
'Declaration
 
Public Sub UpdateZoomFrom( _
   ByVal zoomInfo As ImGearZoomInfo _
) 
'Usage
 
Dim instance As ImGearPresentationPageDisplay
Dim zoomInfo As ImGearZoomInfo
 
instance.UpdateZoomFrom(zoomInfo)
public void UpdateZoomFrom( 
   ImGearZoomInfo zoomInfo
)
public: void UpdateZoomFrom( 
   ImGearZoomInfo zoomInfo
) 
public:
void UpdateZoomFrom( 
   ImGearZoomInfo zoomInfo
) 

Parameters

zoomInfo
ImGearZoomInfo object with new zoom attributes.
Example
// Get the current Zoom settings
ImGearZoomInfo igZoomInfo =
    imGearPageView.Display.GetZoomInfo(imGearPageView);
// Change zoom to fixed to disable any current Fit modes.
igZoomInfo.Horizontal.Fixed = true;
igZoomInfo.Vertical.Fixed = true;
// Double the current zoom level.
igZoomInfo.Horizontal.Value *= 2;
igZoomInfo.Vertical.Value *= 2;
imGearPageView.Display.UpdateZoomFrom(igZoomInfo);
// Cause a redraw with the new zoom.
imGearPageView.Invalidate();
'Get the current Zoom settings
Dim igZoomInfo As ImGearZoomInfo = _
    ImGearPageView1.Display.GetZoomInfo(ImGearPageView1)
'Change zoom to fixed to disable any current Fit modes.
igZoomInfo.Horizontal.Fixed = True
igZoomInfo.Vertical.Fixed = True
'Double the current zoom level.
igZoomInfo.Horizontal.Value *= 2
igZoomInfo.Vertical.Value *= 2
ImGearPageView1.Display.UpdateZoomFrom(igZoomInfo)
'Cause a redraw with the new zoom.
ImGearPageView1.Invalidate()
See Also

Reference

ImGearPresentationPageDisplay Class
ImGearPresentationPageDisplay Members
ImGearZoomInfo Structure