First commit 09/04/1995
This commit is contained in:
14
CD_GRAPH.CPP
Normal file
14
CD_GRAPH.CPP
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
unsigned far JD_imagesize(int left, int top, int right, int bottom);
|
||||
|
||||
|
||||
unsigned far JD_imagesize(int left, int top, int right, int bottom) {
|
||||
|
||||
unsigned long X_width, Y_width;
|
||||
|
||||
X_width= ( (left > right) ? (left - right + 1) : (right - left + 1) );
|
||||
Y_width= ( ( up > down) ? ( up - down + 1) : ( down - up + 1) );
|
||||
|
||||
return (X_width * Y_width + 4);
|
||||
|
||||
};
|
Reference in New Issue
Block a user