GDI+ 文字旋转后 位置变化.
来源:互联网 发布:linux 服务器版 编辑:程序博客网 时间:2024/05/16 01:10
StringFormat format;
format.SetAlignment(StringAlignmentCenter);
format.SetLineAlignment(StringAlignmentNear);
Gdiplus::Font clrFont(L"Arial",65,FontStyleRegular,UnitPixel );
SolidBrush blackBrush(Color(255, 0, 0, 0));
RectF rcText(PointF(rcBounds.left-m_fSideWidth*cxInch*0.9,rcBounds.top+nw+txtSize/2),SizeF(txtSize,txtSize));
PointF txtPoint[4]={
PointF(rcText.GetLeft(),rcText.GetTop()),
PointF(rcText.GetRight(),rcText.GetTop()),
PointF(rcText.GetLeft(),rcText.GetBottom()),
PointF(rcText.GetRight(),rcText.GetBottom())
};
graph.RotateTransform(REAL(-90)); // 旋转 角度
graph.TransformPoints(CoordinateSpaceWorld,CoordinateSpacePage,txtPoint,4);//求旋转后的位置
RectF rcTrText(txtPoint[0],SizeF(txtSize,txtSize));
graph.DrawString(IntToStr(nw/cxInch),-1,&clrFont,rcTrText,&format,&blackBrush);
graph.ResetTransform();
- GDI+ 文字旋转后 位置变化.
- GDI+文字旋转
- 用GDI+使文字轻松旋转
- 文字显示位置随着进度变化
- 按钮和文字点击后颜色变化
- 图像中某点绕点旋转后的坐标,图像旋转坐标位置
- android设置系统文字大小后App的文字会变化
- 控件自适应窗口最大化后的位置变化
- gdi+ 错位变化
- C#利用GDI+绘制旋转文字,矩形内可以根据布局方式排列文本
- 文字旋转
- 旋转文字
- 文字旋转
- button如何旋转后同时改变触发位置
- GDI创建旋转HFONT
- button 里面的文字换行后位置会浮动
- C# GDI+ 文字操作
- C# GDI+ 文字操作
- 20141230 N2
- Android--Notification
- python格式化输出
- 敏捷开发 Scrum 总结
- Unicode(UTF-8, UTF-16)令人混淆的概念
- GDI+ 文字旋转后 位置变化.
- android jni 简介
- 工具——hg教程思维导图
- JAVA命名规范
- Java复制文本文件代码
- eclipse异常java was started but returned exit code =-805306369
- wp8.1 Study15:后台任务
- IOCtl()函数介绍
- 你用过媒体查询,或针对移动端的布局/CSS 吗?