The .jpg image is resized in the GUI
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Good afternoon,
I have a problem. I have a GUI with several axes, in two os the axes I have two .jpg images, inthe rest I have DICOM images. My problem is that when I use the function 'fill' to fill the area inside a contour in a DICOM image it appears a problem in the axes with the .jpg image, it becomes one pixel bigger and I am using imshow so the image becomes bigger than the axes.
I don't know if it's important but that axes are on a panel
Someone can help me?
Thank you.
[Merged from duplicate]
Hello,
Please I need some help, I have a GUI with several axes and when I use the option 'fill',to fill with a colour a contour, all the images in the GUI are expanded in the x-axis about 1 pixel.
Can be related with the property 'CLimMode'? I don't know how to solve it. I have put the property ClimMode to manual and it doesn't work.
Thank you
Silvia
4 Comments
Walter Roberson
on 4 Feb 2014
Just before the fill() could you output
get(gcf, 'Renderer')
and then display the same thing again right after the fill() ?
Silvia
on 5 Feb 2014
Edited: Walter Roberson
on 5 Feb 2014
Thank you for your answer, the problem has disappeared but there id another one, I used these sentences:
get(gcf,'Renderer');
fill(boundary_y,boundary_x,'color',cl,'EdgeColor','none','facealpha',0.1);
Now the problem has disappeared but the properies of the fill ('EdgeColor','none','facealpha',0.1) has also disappeared and the colour is opaque.
Can you explain me what I am doing wrong?
Thank you very much for your help
Silvia
on 5 Feb 2014
I have read that renderer (painters)ignores transparecy. However, renderer (OpenGL) doen't ignore transparency but my problem about expandingmy image appears again :(
I don't know how to solve this
Walter Roberson
on 5 Feb 2014
Edited: Walter Roberson
on 5 Feb 2014
Please display the renderer before and after the fill; your code gets it and discards the result.
Which MATLAB version are you using, on which operating system?
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!