BugInTheSYS

CMX_COLOR

Oct 2nd, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.37 KB | None | 0 0
  1. function fillCMX_COLOR(Red, Green, Blue: Byte; const Alpha: Byte = 255): TCMX_COLOR;
  2. begin
  3.   Result.Red:=Red;
  4.   Result.Green:=Green;
  5.   Result.Blue:=Blue;
  6.   Result.Alpha:=Alpha;
  7. end;
  8.  
  9. procedure TForm1.Button1Click(Sender: TObject);
  10. var CMX_COLOR: TCMX_COLOR;
  11. begin
  12.   CMX_COLOR := fillCMX_COLOR(0,128,255);
  13.   {  =  CMX_COLOR := fillCMX_COLOR(0,128,255,255); }
  14. end
Advertisement
Add Comment
Please, Sign In to add comment