首先来一张效果图。在这里,花鸟字的每一个字都是一幅画。实现过程是通过输入的文字获取对应的图片,然后在一张图片上平铺绘制。格式可以自己设置,三五行。是的,可以将输入的文字组合成图片,然后将图片居中显示在界面上的效果。下面是使用C++的实现方法。理论上,只要使用的语言支持图片绘制,都可以自己移植或实现//绘制代码voidCArt::Paint(Graphics&v_graphics){v_graphics.TranslateTransform(m_nFrameWidth/2.0f,m_nFrameHeight/2.0f);如果(m_pBgImage&&m_vetFileList.size()<4)v_graphics.DrawImage(m_pBgImage,Rect(-m_nBgWidth/2.0f,-m_nBgHeight/2.0f,m_nBgWidth+0.0f,m_nBgHeight+0.0f),0,0,m_nBgWidth,m_nBgHeight,单位像素);如果(m_pFontImage)v_graphics.DrawImage(m_pFontImage,Rect(-m_nFontWidth/2.0f,-m_nFontHeight/2.0f,m_nFontWidth+0.0f,m_nFontHeight+0.0f),0,0,m_nFontWidth,m_nFontHeight,单位/像素);}/花鸟图片boolCArt::LoadImage(stringstrURI){boolbRet=false;intlength=strURI.length();if(length&&length%6==0){m_vetFileList.clear();安全删除(m_pFontImage);对于(inti=0;i
