View in #ohif on Slack
@Mahta_Khoobi: Hi, is there a way to remove the paddings (the arrows) and instead stretch the whole image fullsize in the viewer or with 100% zoom? (that it covers the whole main pannel) I have tried to find it in the extensions/cornerstone but could not find how one can render the full image in the viewport
@Bill_Wallace: Yes, modify the hanging protocol you are using to have a display area - see hpMammo for an example, and you can use:
displayArea: {
storeAsInitialCamera: true,
imageArea: [1,1],
}
@Alireza_Sedghi: I think in 2.x we should make that default, wdyt @Bill_Wallace
@Bill_Wallace: Yes, I think that should be the default
@Enas_Mostafa: cornerviewport.setZoom(1.1, false);
cornerviewport.setPan([0, 0], false);
Worked very well with me
I added it in the viewport service
@Mahta_Khoobi: Hi, thank you all for your help, I will try them out!
@Bill_Wallace: Setting the display area will work most consistently over time as that is the canonical way to apply the values.
@Mahta_Khoobi: The displayArea worked well, just needed to set it as imageArea: [0.8,0.8]