Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I 've written the following code for displaying colored rectangle on the emulator's screen.
void BookMyShow4_SeatLayout(sample1 *pMe)
{
IGraphics *pIGraphics;
AEERect rc[10][10];
AEERect rc1[10][10];
int i,j;
int di=0,dj=0;

ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_GRAPHICS,&pIGraphics);

for(i=0;i<10;i++)
{
for(j=0;j<10;j++)
{

SETAEERECT(&rc1[i][j],di,dj,10,10);
dj+=14;

}
di+=14;
dj=0;
}

for(i=0;i<10;i++)
{
for(j=0;j<10;j++)

if(i%2==0)
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(235,156,0));
else
IDISPLAY_FillRect(pMe->a.m_pIDisplay,&rc1[i][j],MAKE_RGB(0,255,0));

}

IDISPLAY_Update(pMe->a.m_pIDisplay);

Now I wanted to get the particular region(rectangle) as the image so that i could manipulate it . Is there anyway to do so.

Thanks