-
Notifications
You must be signed in to change notification settings - Fork 74
/
UFilters.p
59 lines (47 loc) · 1.26 KB
/
UFilters.p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{Photoshop version 1.0.1, file: UFilters.p
Computer History Museum, www.computerhistory.org
This material is (C)Copyright 1990 Adobe Systems Inc.
It may not be distributed to third parties.
It is licensed for non-commercial use according to
www.computerhistory.org/softwarelicense/photoshop/ }
UNIT UFilters;
INTERFACE
USES
{$LOAD MacIntf.LOAD}
MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf,
{$LOAD UMacApp.LOAD}
UObject, UList, UMacApp,
{$LOAD UPhotoshop.LOAD}
PaletteMgr, UConstants, UVMemory, UPhotoshop,
{$LOAD}
UProgress;
CONST
cFacetPass1 = -1;
cFacetPass2 = -2;
cFacetPass3 = -3;
cFacetPass4 = -4;
cDiffuseDarken = -5;
cDiffuseLighten = -6;
cSelectFringeNarrow = -7;
cSelectFringeWide = -8;
kMaxParameters = 27;
VAR
gFilterParameter: ARRAY [1..kMaxParameters] OF LONGINT;
PROCEDURE GaussianFilter (data: TVMArray;
VAR r: Rect;
width: INTEGER;
quick: BOOLEAN;
canAbort: BOOLEAN);
PROCEDURE MinOrMaxFilter (srcArray: TVMArray;
dstArray: TVMArray;
r: Rect;
radius: INTEGER;
maxFlag: BOOLEAN;
alternate: BOOLEAN);
PROCEDURE Do3by3Filter (srcArray: TVMArray;
dstArray: TVMArray;
r: Rect;
which: INTEGER);
IMPLEMENTATION
{$I UFilters.inc1.p}
END.