Parametry
hView | identifikace (handle) formulß°e |
x, y | sou°adnice v okn∞ formulß°e hView |
color | oznaΦenφ barvy |
Popis
Procedura Put_pixel
nakreslφ v okn∞ hView v sou°adnicφch x a y bod v barv∞ color.
Tato procedura je do rozhranφ WinBase602 zahrnuta z d∙vodu kompatibility se starÜφmi verzemi. V nov²ch aplikacφch doporuΦujeme pro kreslenφ vyu₧φvat funkcφ z DLL knihovny Windows GDI.EXE.
P°φklad
var
id,i,j : short;
begin
Open_view("a DBDIALOG 20 20 400 300 begin end",no_redir,0,0,0,id);
Draw_line(id, 50,50,100,50,0);
Draw_line(id, 100,50,100,100,0);
Draw_line(id, 100,100,50,100,0);
Draw_line(id, 50,100,50,50,0);
for i := 51 to 99 do
for j := 51 to 99 do
Put_pixel(id,i,j,i*j mod 255);
repeat Peek_message until id=0;
end.
Viz