请朋友们帮忙,把如下几行代码改为delphi(200)

  • 主题发起人 主题发起人 spd260
  • 开始时间 开始时间
S

spd260

Unregistered / Unconfirmed
GUEST, unregistred user!
typedef struct{ COLORREF Mask[3];} COLOURMASK, PCOLOURMASK;static COLOURMASK ColourMasks[] ={ { 0x00ff0000, 0x0000ff00, 0x000000ff, }, /* RGB888 */};上面几行代码,转成delphi如何转
 
type TColourMask=record Mask0:COLORREF;
Mask1:COLORREF;
Mask2:COLORREF;
end;
var ColourMasks:array[0..0] of TColourMask= ( (Mask0:$00ff0000;Mask1:$0000ff00;Mask2:$000000ff) );
 
typeCOLOURMASK=record COLORREF Array [1..3] Of DWordend;
PCOLOURMASK=COLOURMASK;const ColourMasks:COLOURMASK =( $00ff0000, $0000ff00, $000000ff);
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部