void makegif::initial(YsRawPngDecoder &image2, TextString &str ,int num,int hLTx, int hLTy, int hRBx, int hRBy)
{
    str.Set("GIF1/1.png");
    if(YSOK==image2.Decode(str.GetPointer()))
    {
        picWidth=image2.wid;
        picHeight=image2.hei;
    }
    else
    {
        printf("Read Error!\n");
    }
    timeCounter=0;
    pictureNum=num;
    FsGetWindowSize(winWidth,winHeight);
    startX=winWidth/2;
    startY=winHeight/2;
    picLTx=startX;
    picLTy=startY-picHeight;
    picRBx=startX+picWidth;
    picRBy=startY;
    headLTx=hLTx;
    headLTy=hLTy;
    headRBx=hRBx;
    headRBy=hRBy;
}
void makegif::choose(YsRawPngDecoder &image2, TextString &str)
{
    if(timeCounter%pictureNum==0)
    {
        str.Set("GIF1/1.png");
    }
    else if(timeCounter%pictureNum==1)
    {
        str.Set("GIF1/2.png");
    }
    else if(timeCounter%pictureNum==2)
    {
        str.Set("GIF1/3.png");
    }
    else if(timeCounter%pictureNum==3)
    {
        str.Set("GIF1/4.png");
    }
    else if(timeCounter%pictureNum==4)
    {
        str.Set("GIF1/5.png");
    }
    else if(timeCounter%pictureNum==5)
    {
        str.Set("GIF1/6.png");
    }
    else if(timeCounter%pictureNum==6)
    {
        str.Set("GIF1/7.png");
    }
    else if(timeCounter%pictureNum==7)
    {
        str.Set("GIF1/8.png");
    }
    else if(timeCounter%pictureNum==8)
    {
        str.Set("GIF1/9.png");
    }
    else if(timeCounter%pictureNum==9)
    {
        str.Set("GIF1/10.png");
    }
    else if(timeCounter%pictureNum==10)
    {
        str.Set("GIF1/11.png");
    }
    else if(timeCounter%pictureNum==11)
    {
        str.Set("GIF1/12.png");
    }

    if(YSOK==image2.Decode(str.GetPointer()))
    {
    }
    else
    {
        printf("Read Error!\n");
    }
}