The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
create image always returning null


Hi All,
IOObject io=ioResult.getElementAt(0);
TreeModel model=(TreeModel) ioResult.getElementAt(0);
Renderer createRenderer = RendererService.createRenderer(io, "Graph View");
Component visualizationComponent= createRenderer.getVisualizationComponent(io, ioResult);
System.out.println(visualizationComponent.isDisplayable());
Image createImage = visualizationComponent.createImage(100, 100);
Graphics graphics = createImage.getGraphics();
visualizationComponent.isDisplayable()....false.
here createImage always returning null
what could be the reason?
thanks in advance.
IOObject io=ioResult.getElementAt(0);
TreeModel model=(TreeModel) ioResult.getElementAt(0);
Renderer createRenderer = RendererService.createRenderer(io, "Graph View");
Component visualizationComponent= createRenderer.getVisualizationComponent(io, ioResult);
System.out.println(visualizationComponent.isDisplayable());
Image createImage = visualizationComponent.createImage(100, 100);
Graphics graphics = createImage.getGraphics();
visualizationComponent.isDisplayable()....false.
here createImage always returning null
what could be the reason?
thanks in advance.
Tagged:
0
Answers