VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / ReloadImage Method
Example



In This Topic
    ReloadImage Method (WpfImageViewer)
    In This Topic
    Reloads focused image in image viewer.
    Syntax
    'Declaration
     
    Public Sub ReloadImage() 
    public void ReloadImage()
    public: void ReloadImage(); 
    public:
    void ReloadImage(); 
    Remarks
    This method must be used when it is necessary to apply new image preview settings for focused image when:
    Example
    ' enable dynamic rendering of PDF documents
    viewer.RenderingRequirements.SetRequirement("Pdf", New Vintasoft.Imaging.ImageRendering.ImageSizeRenderingRequirement(0))
    ' reload current image in image viewer
    viewer.ReloadImage()
    // enable dynamic rendering of PDF documents
    viewer.RenderingRequirements.SetRequirement("Pdf",
        new Vintasoft.Imaging.ImageRendering.ImageSizeRenderingRequirement(0));
    // reload current image in image viewer
    viewer.ReloadImage();
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also