void DrawImageTurnOver(tImage *mImage,VMUINT16 x,VMUINT16 y, VMBOOLEAN isalpha)
{
VMUINT16 i=0,j=0;
VMUINT16 ImageW=mImage->width;
VMUINT16 ImageH=mImage->height;
VMUINT16* Imagedata=mImage->data;
VMUINT16 mdata=0,skip = 0;
VMUINT16* mailLcdBuf=extVmLcdManager->VMGetLCDBuffer();
vm_assert(mImage!=PNULL);
skip =(4 - (ImageW % 4)) % 4;
ImageW=ImageW+skip;
for(i=0;i<ImageW;i++)
{
for(j=0;j<ImageH;j++)
{
if(isalpha && 0==*(Imagedata+j*ImageW+(ImageW-1-i)))
{
// 透明,不显示
}
else
{
*(mailLcdBuf+(y+j)*VM_MAINSCREEN_WIDTH+(x+i))=*(Imagedata+j*ImageW+(ImageW-1-i));
}
}
}
}
{
VMUINT16 i=0,j=0;
VMUINT16 ImageW=mImage->width;
VMUINT16 ImageH=mImage->height;
VMUINT16* Imagedata=mImage->data;
VMUINT16 mdata=0,skip = 0;
VMUINT16* mailLcdBuf=extVmLcdManager->VMGetLCDBuffer();
vm_assert(mImage!=PNULL);
skip =(4 - (ImageW % 4)) % 4;
ImageW=ImageW+skip;
for(i=0;i<ImageW;i++)
{
for(j=0;j<ImageH;j++)
{
if(isalpha && 0==*(Imagedata+j*ImageW+(ImageW-1-i)))
{
// 透明,不显示
}
else
{
*(mailLcdBuf+(y+j)*VM_MAINSCREEN_WIDTH+(x+i))=*(Imagedata+j*ImageW+(ImageW-1-i));
}
}
}
}