Pixel Shift

A file that stores all functions that have anything to do with pixel shifting.

The source for this file can be found here.

getPixelShift

function getPixelShift(b: TBoxArray; time: integer): TIntegerArray;

Calculates how many pixels change in each box in “b” over the “time” (in milliseconds). Returns the shifts in a TIntegerArray.

Note

  • by marpis
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift([intToBox(100, 100, 200, 200)], 500);

getPixelShift; overload;

function getPixelShift(b: TBox; time: integer): integer; overload;

Overload function. Takes a TBox parameter rather than a TBoxArray.

Note

  • by marpis
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(minimap.getBounds(), 500);

getPixelShift; overload;

function getPixelShift(atpa: T2DPointArray; time: integer): TIntegerArray; overload;

Overload function. Returns the number of pixels shifted in each TPointArray in “atpa” over the “time”. Returns the shifts in a TIntegerArray.

Note

  • by Coh3n
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(atpa, 500);

getPixelShift; overload;

function getPixelShift(tpa: TPointArray; t: integer): integer; overload;

Overload function. Takes a TPointArray parameter rather than a T2DPointArray.

Note

  • by Coh3n
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(TPAFromBox(minimap.getBounds()), 500);

getPixelShiftAverage

function getPixelShiftAverage(b: TBoxArray; waitPerLoop, maxTime: integer): TIntegerArray;

Returns the average pixel shifts in each box in “b” over “maxTime”, waiting “waitPerLoop” milliseconds between pixel shift checks.

Note

  • by Coh3n
  • Last Updated: 10 October 2014 by Bonsai

Example:

s := getPixelShift([intToBox(100, 100, 200, 200)], 50, 500);

getPixelShiftAverage; overload;

function getPixelShiftAverage(b: TBox; waitPerLoop, maxTime: integer): integer; overload;

Returns the average pixel shift in box “b” over “maxTime”, waiting “waitPerLoop” between getPixelShift calls.

Note

  • by Coh3n
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(minimap.getBounds(), 50, 500);

getPixelShiftAverage; overload;

function getPixelShiftAverage(atpa: T2DPointArray; waitPerLoop, maxTime: integer): TIntegerArray; overload;

Returns the average pixel shifts in each TPointArray in “atpa” over “maxTime”, waiting “waitPerLoop” milliseconds between pixel shift checks.

Note

  • by Coh3n
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(atpa, 50, 500);

getPixelShiftAverage; overload;

function getPixelShiftAverage(b: TPointArray; waitPerLoop, maxTime: integer): integer; overload;

Description of the function here.

Note

  • by Coh3n
  • Last Updated: 23 May 2013 by Coh3n

Example:

s := getPixelShift(tpa, 50, 500);