Project

General

Profile

Bug #2474

Debian10.12-QT平台-qEhgraph:函数关于图元颜色的设置和获取

Added by dj Li about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
08/23/2022
Due date:
% Done:

100%

Estimated time:

Description

1.函数setmetacolor暂未生效,目前常用于电力专业中母线的变色;getmetacolor暂未生效;

2.函数setbarcolor在图元名省略的情况下不生效,手册中写明可省;

3.函数setrealsetcolor暂未生效;getrealsetcolor暂未生效;


Files

1.setmetacolor.png (36.6 KB) 1.setmetacolor.png dj Li, 08/23/2022 10:39 AM
2.setbarcolor.png (25.5 KB) 2.setbarcolor.png dj Li, 08/23/2022 10:39 AM
3.setrealsetcolor.png (33.9 KB) 3.setrealsetcolor.png dj Li, 08/23/2022 10:39 AM

History

#1

Updated by dj Li almost 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

1.setobjcolor(图元名,R,G,B,flag)
说明:图元名可省可不省;flag类似于不透明度,(flag:0,透明,不可见;flag:1,可见);可对文字、母线上色,矩形/椭圆等图元是对背景上色(不包括边框);
2.setmetacolor(图元名,R,G,B,flag)
说明:flag为是否着色,0:不着色,1:着色;可对母线上色
getmetacolor(图元名)
说明:返回值为flag,R,G,B=getmetacolor(图元名);未经setmetacolor上色获取的返回值是0,0,0,0;
3.setrealsetcolor(图元名,R,G,B,flag)
说明:flag为是否着色,0:不着色,1:着色;可对母线上色,对矩形/椭圆等图元是全部上色(包括边框+背景);
getrealsetcolor(图元名)
说明:返回值为flag,R,G,B=getrealsetcolor(图元名);未经setrealsetcolor上色获取的返回值是0,0,0,0;

Also available in: Atom PDF