R
rzqcjwrz
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.BitBtn3Click(Sender: TObject); //取LOGO
var
format1,format2:array[0..13] of word;
begin
Format1[0] := 24;
Format1[1] := 24;
Format1[2] := _OSD_YEAR4;
Format1[3] := ord('-');
Format1[4] := _OSD_MONTH2;
Format1[5] := ord('-');
Format1[6] := _OSD_DAY;
Format1[7] := ord('-');
Format1[8] := _OSD_HOUR24;
Format1[9] := ord(':');
Format1[10] := _OSD_MINUTE;
Format1[11] := ord(':');
Format1[12] := _OSD_SECOND;
Format1[13] :=ord(#0);
Format2[0] := 24;
Format2[1] := 250;
Format2[2] := _OSD_YEAR4;
Format2[3] := ord('-');
Format2[4] := _OSD_MONTH2;
Format2[5] := ord('-');
Format2[6] := _OSD_DAY;
Format2[7] := ord('-');
Format2[8] := _OSD_HOUR24;
Format2[9] := ord(':');
Format2[10] := _OSD_MINUTE;
Format2[11] := ord(':');
Format2[12] := _OSD_SECOND;
Format2[13] :=ord(#0);
SetOsdDisplayMode(chanl,255, true,1, @Format1, @Format2);
// SetOsd(chanl,true);//设置OSD显示与否
end;
为什么不能在屏幕上显示?错在什么地方?
var
format1,format2:array[0..13] of word;
begin
Format1[0] := 24;
Format1[1] := 24;
Format1[2] := _OSD_YEAR4;
Format1[3] := ord('-');
Format1[4] := _OSD_MONTH2;
Format1[5] := ord('-');
Format1[6] := _OSD_DAY;
Format1[7] := ord('-');
Format1[8] := _OSD_HOUR24;
Format1[9] := ord(':');
Format1[10] := _OSD_MINUTE;
Format1[11] := ord(':');
Format1[12] := _OSD_SECOND;
Format1[13] :=ord(#0);
Format2[0] := 24;
Format2[1] := 250;
Format2[2] := _OSD_YEAR4;
Format2[3] := ord('-');
Format2[4] := _OSD_MONTH2;
Format2[5] := ord('-');
Format2[6] := _OSD_DAY;
Format2[7] := ord('-');
Format2[8] := _OSD_HOUR24;
Format2[9] := ord(':');
Format2[10] := _OSD_MINUTE;
Format2[11] := ord(':');
Format2[12] := _OSD_SECOND;
Format2[13] :=ord(#0);
SetOsdDisplayMode(chanl,255, true,1, @Format1, @Format2);
// SetOsd(chanl,true);//设置OSD显示与否
end;
为什么不能在屏幕上显示?错在什么地方?