Comments on: Transparency in uicontrols https://undocumentedmatlab.com/blog_old/transparency-in-uicontrols Charting Matlab's unsupported hidden underbelly Thu, 02 May 2024 08:00:01 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: edouardhttps://undocumentedmatlab.com/blog_old/transparency-in-uicontrols#comment-379018 Fri, 03 Jun 2016 22:05:13 +0000 https://undocumentedmatlab.com/?p=5302#comment-379018 Hello Yair! your codes are great!!! I used the transparent background one. It helped me a lot.

I would add as a NB that the position “pos” used by the getframe function is set in the coordinate system of the axes graph, meaning the position of the child image and the position used in the getframe function should be seperated. Otherwise the getframe function take the background from another part of the image.

I just have one question. When I superimpose the child image on the parent somewhere away from the edges I get a thin line colored by the ‘BackgroundColor’ on the left edge of the child image, meaning everything I want to be transparent is transparent except for that thin line. Do you have any idea what that could be due to? It seems to be something to do with the ‘Extent’ but I can’t figure it out..

Thanks

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/transparency-in-uicontrols#comment-375034 Mon, 25 Apr 2016 08:14:53 +0000 https://undocumentedmatlab.com/?p=5302#comment-375034 @Jeff – try changing your figure’s Renderer property value to 'OpenGL' – painters/zbuffer do not support transparency (details).

]]>
By: Jeffhttps://undocumentedmatlab.com/blog_old/transparency-in-uicontrols#comment-375033 Mon, 25 Apr 2016 07:59:03 +0000 https://undocumentedmatlab.com/?p=5302#comment-375033 Hello Yair,
I have used your exact code found in section “Transparent Background”, but the generated figure does not render the same as your example. There are vertical striations in the transparent button image. (Please see screenshot).

I’m wondering if it is a software version issue. I’m running R2015b. Any ideas/solutions to repair this issue?
Thank you.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/transparency-in-uicontrols#comment-372861 Sat, 26 Mar 2016 16:51:17 +0000 https://undocumentedmatlab.com/?p=5302#comment-372861 @Sergio – see https://undocumentedmatlab.com/blog/button-customization

More details can be found in Chapter 6 of my Matlab-Java programming book.

]]>
By: Sergiohttps://undocumentedmatlab.com/blog_old/transparency-in-uicontrols#comment-372850 Sat, 26 Mar 2016 11:51:53 +0000 https://undocumentedmatlab.com/?p=5302#comment-372850 It was a very well way to learn customize uicontrols.

But I have a doubt. Is posible that a “CDATA image” can be placed in a left or right position of uicontrol object, not in the center position of uicontrol ?

Thank you.

Att: A Engineer.

]]>