home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
IMSCALE.ZIP
/
SCALE.H
< prev
Wrap
Text File
|
1993-05-11
|
800b
|
34 lines
/**********************************************************************
**
** SCALE.H
**
** Small program that shows how to scale when the source and
** destination are both under 64K
**
**********************************************************************/
//start of VGA memory
#define VgaMem ((unsigned char *)0xA0000000)
//for writing palette
#define VgaStartColor 0x03c8
#define VgaPort 0x03c9
//for bounding areas
typedef struct
{
int Sx, Sy, Ex, Ey;
}Rect;
typedef Rect * pRect;
//functions
void SetVideoMode(int Mode);
void LoadJohn(void);
void GetImage(pRect r, unsigned char * Buffer);
void PutImage(pRect r, unsigned char * Buffer);
void PalGrayScale(void);
void Scale(pRect Source, pRect Dest);
unsigned int ImageSize(pRect r);
int GetKey(void);