| 網(wǎng)站首頁 | 關(guān)于我們 | 開發(fā)優(yōu)勢 | 產(chǎn)品展示 |
| 合作企業(yè) | 新聞動態(tài) | 聯(lián)系我們 | 電話聯(lián)系 |
文章作者:濟南軟件開發(fā) 時間:2016年12月20日
//需要顯示的文字信息
const char* str = "This is a bug";
//保存現(xiàn)場
gpHandle->save();
//當(dāng)前屏幕
CGContextRef context = gpHandle->getContext();
//坐標(biāo)轉(zhuǎn)化
CGContextSetTextMatrix(context, CGAffineTransformMakeScale(1.0, -1.0));
//字體信息
CGContextSelectFont(context, "Helvetica", 30 * 4.41718, kCGEncodingMacRoman);
//顯示文字
CGContextShowTextAtPoint(context, prct->left, prct->top, str, strlen(str));
//還原現(xiàn)場
gpHandle->restore();
想要了解更多詳情歡迎來電咨詢18678812288
登陸網(wǎng)址:m.h6244.cn。
聯(lián)系人:王經(jīng)理。