@@ -0,0 +1,1619 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkImageReader2;%0Aimport vtk.vtkImageViewer2;%0Aimport vtk.vtkImageReader2Factory;%0A%0Apublic class StaticImage %0A%7B%0A  // -----------------------------------------------------------------%0A  // Load VTK library and print which library was not properly loaded%0A  static %0A  %7B%0A    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A    %7B%0A      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A      %7B%0A        if (!lib.IsLoaded()) %0A        %7B%0A          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A        %7D%0A      %7D%0A    %7D%0A    vtkNativeLibrary.DisableOutputWindow(null);%0A  %7D%0A  // -----------------------------------------------------------------%0A%0A  public static void main(String args%5B%5D) %0A  %7B%0A    // Read the image (Pass the Image File Name as Argument)%0A    vtkImageReader2Factory ReaderFactory = new vtkImageReader2Factory();%0A    vtkImageReader2 Reader = ReaderFactory.CreateImageReader2(args%5B0%5D);%0A    Reader.SetFileName(args%5B0%5D);%0A    Reader.Update();%0A%09%09%0A    // Visualize%0A    vtkImageViewer2 ImageViewer = new vtkImageViewer2();%0A    ImageViewer.SetInputConnection(Reader.GetOutputPort());%0A    ImageViewer.GetRenderWindow().SetSize(500, 500);%0A    ImageViewer.GetRenderer().ResetCamera();%0A%0A    // Set up an interactor that does not respond to mouse events%0A    vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();%0A    ImageViewer.GetRenderWindow().SetInteractor(iren);%0A    iren.SetInteractorStyle(null);%0A    ImageViewer.Render();%0A%0A    // Start the event loop%0A    iren.Initialize();%0A    iren.Start();%0A%0A    Reader.Delete();%0A  %7D%0A%7D%0A

Create StaticImage.java