Mail Archives: djgpp/1998/02/02/15:17:01
From: | Kdawghu AT hotmail DOT com (Kris Mills)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | GRaphics and DJGPP
|
Date: | Mon, 02 Feb 98 19:58:56 GMT
|
Organization: | VisiNet InterNetNews site
|
Lines: | 16
|
Message-ID: | <6b58j4$mph$1@madrid.visi.net>
|
NNTP-Posting-Host: | ppp-10-34.nn.visi.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi was woundering if some one could help me out.. Well I want to how to write
a GET command useing graphics like the one in qbasic.
this is what i tryed.
//Note i'm useing 640x480 mode 100h
void getimage(unsigned x,unsigned y,unsigned x2 ,unsigned y2,char *buffer)
{
int offset=y*640+x;
memcpy((char *)buffer,(char *)video+offset,(x2*y2));
}
Please help tell me what i'm doing wrong... Thanks Alot
- Raw text -