Unit GrafMan

--------------------------------------------------- Graphics Manager Copyright (r) by DreamFactory Version : 1.75 Author : William Yang Last Update 09 - Sep - 97 ---------------------------------------------------

Classes

Functions

BMPFromRes -
BmpToLCD - on even/odd rows
BrightenBMP -
BWOnlyBMP -
ColoriseImage - ************************************************************************* There is a small bug in this unit.
CreatePattern -
DarkenBMP -
DisabledBmp -
GreyBMP -
LoadBMPFile -
MakeButton -
MergeBMP -
MergeBMPExt -
ResizeBMP -
SoftenBMP -

Types

Constants

Variables


Functions


function BMPFromRes(ResName: String) : TBitmap;


function BmpToLCD(Src: TBitmap; ForeColor, Backcolor: TColor): TBitmap;

on even/odd rows

function BrightenBMP(Bmp : TBitmap; Grade : Integer) : TBitmap;


function BWOnlyBMP(Src : TBitmap) : TBitmap;


function ColoriseImage(Bmp : TBitmap; BaseColor : TColor) : TBitmap;

************************************************************************* There is a small bug in this unit. Becase I used a internal variable for each function that returns a TBitmap object, which means if you are going to add another function you must not cross use this variable. I mean you cannot use in one of the function and not yet wait until it is finished call another function in this unit. _________________________________________________________________________

function CreatePattern(Color1, Color2: TColor ): TBitmap;


function DarkenBMP(Bmp : TBitmap; Grade : Integer) : TBitmap;


function DisabledBmp(Src: TBitmap; DisabledColor, FaceColor: TColor): TBitmap;


function GreyBMP(Src : TBitmap) : TBitmap;


function LoadBMPFile(Filename: String): TBitmap;


function MakeButton(Src : TBitmap; Border : Integer; Soft : Boolean) : TBitmap;


function MergeBMP(Pic1, Pic2 : TBitmap) : TBitmap;


function MergeBMPExt(Pic1, Pic2 : TBitmap; Grade: Byte) : TBitmap;


function ResizeBMP(Src: TBitmap; Width, Height: Integer): TBitmap;


function SoftenBMP(Src : TBitmap; Deep : Single) : TBitmap;


Types


Constants


Variables