Skip to content

Commit

Permalink
增加Graphics.Window.Fill示例
Browse files Browse the repository at this point in the history
  • Loading branch information
埃博拉酱 committed May 12, 2023
1 parent 9866dc0 commit 922a38f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions +MATLAB/+Graphics/Window.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ function Clear(obj)
% ```
% obj.Fill(Color);
% ```
%# 示例
% 注意,输入颜色值严格要求为uint8类型,可以用十六进制语法指定uint8字面类型常量
% ```
% obj.Fill([0xff,0,0,0]);
% %将窗口填充全黑色
%
% obj.Fill([0x80,255,255,255]);
% %将窗口填充半透明白色
% ```
%# 输入参数
% Color(1,4)uint8,用4个字节分别表示颜色的ARGB(不透明度,红,绿,蓝)通道值(不预乘)。注意此处的颜色格式不同于Image方法的要求。
%# 返回值
Expand Down

0 comments on commit 922a38f

Please sign in to comment.