
------------------------------------------------------------------------------
24. Get required byte size for getting character. <Main>
------------------------------------------------------------------------------
[Name]
mmc_textsize
[Syntax]
#include <fgraph.h>
short mmc_textsize( short x1, short y1, short x2, short y2 ) ;
[Arguments]
x1,y1,x2,y2 Screen area (left-upper, right-lower)
[Return]
Required byte size to read the specified area.
[Description]
Returns the required byte size to read the specified area.
The required byte size is calculated by the following formula.
Byte size = (Column size * Line size) * 4 + 4 [byte]
Column size = x2 - x1 + 1
Line size = y2 - y1 + 1
(Example) For reading whole screen (80 x 30).
(80 * 30) * 4 + 4 = 9604 byte