📄 findtext.m
字号:
function data = findtext(redc,greenc,bluec)
txt=0;
if bitand(redc,4)== 4
txt=bitor(txt,128);
end
if bitand(redc,2)== 2
txt=bitor(txt,64);
end
if bitand(redc,1)== 1
txt=bitor(txt,32);
end
if bitand(greenc,4)== 4
txt=bitor(txt,16);
end
if bitand(greenc,2)== 2
txt=bitor(txt,8);
end
if bitand(greenc,1)== 1
txt=bitor(txt,4);
end
if bitand(bluec,2)== 2
txt=bitor(txt,2);
end
if bitand(bluec,1)== 1
txt=bitor(txt,1);
end
data=txt;
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -