Вверх ↑
Ответов: 2060
Рейтинг: 28
#1: 2008-05-27 19:42:47 ЛС | профиль | цитата
тест.

#pas
unit HiAsmUnit;

interface

uses Windows,Messages,Kol,Share,Debug;

type
THiAsmClass = class(TDebug)
private

public
_BitmapA:THI_Event;
_BitmapB:THI_Event;
DiffB2A:THI_Event;
onTween:THI_Event;
procedure doTween(var _Data:TData; Index:word);
end;

implementation

function CreateTweenBitmap(Var BitmapC: PBitmap;
Const BitmapA: PBitmap;
Const WeightA: CARDINAL;
Const BitmapB: PBitmap;
Const WeightB: CARDINAL): boolean;
Const
MaxPixelCount = 65536;

Type
TRGBArray = ARRAY[0..MaxPixelCount-1] OF TRGBTriple;
pRGBArray = ^TRGBArray;

var
i : INTEGER;
j : INTEGER;
RowA : pRGBArray;
RowB : pRGBArray;
RowTween : pRGBArray;
SumWeights: CARDINAL;

карма: 1

0