Ads 468x60px

Smaller time frame always follow the bigger time frame. It's better wait be patience to enter in position than risk with BIG SL. Having strong trading discipline and taking losses when necessary is a sign of serious trading approach
Subscribe:

Labels

Saturday, August 11, 2012

CAN YOUR VIDEO HANDLE 16, 256, 32768, 16777216, OR MORE COLORS?


You can use WIN API function GetDeviceCaps() to calculate the number of colors supported by the current video mode. To make it even easier to use, here's a function that will simply return the number of maximum simultaneous colors current video device can handle:


function GetColorsCount : integer;
var
  h : hDC;
begin
  Result := 0;
  try
    h      := GetDC( 0 );
    Result :=
      1 shl
      (
        GetDeviceCaps( h, PLANES ) *
        GetDeviceCaps( h, BITSPIXEL )
      );
  finally
    ReleaseDC( 0, h );
  end;
end;



comments