Problem when using vtkRemoteView to render slice

Hello,
I am using the wslink library to communicate websocket between client and server to render slices of a dicom image set. If I create multiple viewports on the interface, the final viewport will look like the image below:


This is the viewport I want:

Is there any way to fix it?
Thanks.

Yes make sure you trigger a resize to use the client size rather than a stretch version of the server size image.

1 Like

Thanks @Sebastien_Jourdain
Is there a way to set the image size on the server side?

There should be a method on the client side, that will evaluate the current size and update the server accordingly.

1 Like

Thank you very much. I have a better understanding of it

1 Like