Winapi.WinSock을 이용한 WOL(Wake On Lan) 구현
WinSock을 이용한 WOL(Wake On Lan) 구현 unit Unit1; interface usesWindows, Messages, SysUtils, Variants, Classes,Graphics, Controls, Forms, Dialogs, StdCtrls, WinSock; typeTForm1 = class(TForm)Edit1: TEdit;Button1: TButton;Memo1: TMemo;procedure Button1Click(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);private{ Private declarati..
2024. 7. 2.
밝기(bright), 대비(contrast), 감마(gamma), 색농도(Saturation) 조절
밝기(bright), 대비(contrast), 감마(gamma), 색농도(Saturation) 조절 Amount : 강도 0~255Saturation : 색농도 // contrastfunction IntToByte(i: Integer): Byte;beginif i > 255 then Result := 255elseif i elseResult := i;end; procedure Contrast(var clip: tbitmap; Amount: Integer);varp0: pbytearray;rg, gg, bg, r, g, b, x, y, m: Integer;beginfor y := 0 to clip.Height - 1 dobeginp0 := clip.scanline[y];m := 0;for x := 0..
2024. 6. 19.