% Compute the required opacity-setting steps They can be set to any floating-point value between 0.0-1.0, where an opacity of 0.0 means full transparency, and any value in between means partial transparency (i.e., translucency): Actually, setWindowOpacity sets the opacity level, rather than transparency, but they are obviously complementary and I personally find “transparency” to be more easily understandable.īy default, windows are created with an opacity of 1.0 (= not transparent). Then use Java’s setWindowOpacity method to set the window’s transparency value. Matlab figure window transparencyįollowing an idea I got from Malcolm Lidierth’s MUtilities submission on the Matlab File Exchange, the solution for setting Matlab figure window transparency is quite simple: Get the figure’s underlying Java window reference handle, as in last week’s article. The short answer is that there is no supported way of doing this with pure documented Matlab, but it is trivially easy to achieve using just a bit of Java magic powder (surprise, surprise). This could be used, for example, for window fade-in/fade-out effects. Every now and then, a user asks whether it is possible to make an entire Matlab window transparent ( example).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |