gdi+绘制文字如何旋转?//图中的摆放位置

mirroatl187 2017-05-20 08:55:25
...全文
865 24 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
24 条回复
切换为时间正序
请发表友善的回复…
发表回复
shiter 2017-06-26
  • 打赏
  • 举报
回复
为啥是姐姐,难道楼上是姐姐?
赵4老师 2017-06-14
  • 打赏
  • 举报
回复
《向量几何》
schlafenhamster 2017-06-14
  • 打赏
  • 举报
回复
更详细的
schlafenhamster 2017-06-13
  • 打赏
  • 举报
回复
Remarks The fourth vertex of the parallelogram (D) is defined by treating the first three points (A, B, and C) as vectors and computing D = B + C – A. Bitmap Rotation The Win32 API provides a function to copy a bitmap into a parallelogram; this function, PlgBlt, performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context. In order to rotate the bitmap, an application must provide the coordinates, in world units, to be used for the corners of the parallelogram. (For more information about rotation and world units, see Coordinate Spaces and Transformations.)
schlafenhamster 2017-06-13
  • 打赏
  • 举报
回复
平行4边形 只要知道 3个点 ABC 那么 第4点 也知道了Point D = B+C - A 请 搜索 Plgblt 的说明。
schlafenhamster 2017-06-13
  • 打赏
  • 举报
回复
schlafenhamster 2017-06-12
  • 打赏
  • 举报
回复
mfcPlgblt.dsw 上 原来是个 五角星。看见了没有 ? 按 7楼的 改一改
mirroatl187 2017-06-12
  • 打赏
  • 举报
回复
姐姐,下载了俩边也没看见啊
引用 10 楼 schlafenhamster 的回复:
是 mfcPlgblt.dsw 不是 子目录 plgblt.dsw plgblt.dsw 是 微软的例子 你 点击 newbmp (a.bmp),newmask(amask.bmp) 可以看看结果
mirroatl187 2017-06-12
  • 打赏
  • 举报
回复
mfcPlgblt.dsw没有啊
引用 10 楼 schlafenhamster 的回复:
是 mfcPlgblt.dsw 不是 子目录 plgblt.dsw plgblt.dsw 是 微软的例子 你 点击 newbmp (a.bmp),newmask(amask.bmp) 可以看看结果
mirroatl187 2017-06-12
  • 打赏
  • 举报
回复
谢谢,看到了。 Point D = B+C - A是什么公式呀求理解!!!
引用 17 楼 schlafenhamster 的回复:
“绘制4边形.rar “已发送
schlafenhamster 2017-06-12
  • 打赏
  • 举报
回复
“绘制4边形.rar “已发送
mirroatl187 2017-06-12
  • 打赏
  • 举报
回复
姐姐别呀。。。。笨不会改。发我邮箱mirro187@163.com
引用 15 楼 schlafenhamster 的回复:
mfcPlgblt.dsw 好像上传的时候 丢了 ! 不过 就是 把 界面 改了改, Plgblt 是 原来 意思 你 点击 newbmp (a.bmp),newmask(amask.bmp) 可以看看结果 窗口拖大些
schlafenhamster 2017-06-12
  • 打赏
  • 举报
回复
mfcPlgblt.dsw 好像上传的时候 丢了 ! 不过 就是 把 界面 改了改, Plgblt 是 原来 意思 你 点击 newbmp (a.bmp),newmask(amask.bmp) 可以看看结果 窗口拖大些
mirroatl187 2017-06-12
  • 打赏
  • 举报
回复
姐姐没看见 mfcPlgblt.dsw。。。。
引用 13 楼 schlafenhamster 的回复:
mfcPlgblt.dsw 上 原来是个 五角星。看见了没有 ? 按 7楼的 改一改
schlafenhamster 2017-06-11
  • 打赏
  • 举报
回复
是 mfcPlgblt.dsw 不是 子目录 plgblt.dsw plgblt.dsw 是 微软的例子 你 点击 newbmp (a.bmp),newmask(amask.bmp) 可以看看结果
mirroatl187 2017-06-11
  • 打赏
  • 举报
回复
引用 8 楼 schlafenhamster 的回复:
那 就要 gdi3d 或 其他 3d 软件


姐姐上传的资源错了吧?怎么界面与贴子中的都不一样呢?
schlafenhamster 2017-06-08
  • 打赏
  • 举报
回复
那 就要 gdi3d 或 其他 3d 软件
mirroatl187 2017-06-08
  • 打赏
  • 举报
回复
引用 6楼schlafenhamster 的回复:
下载“plgblt.zip”
http://download.csdn.net/detail/schlafenhamster/3343102
修改

看能不能解决问题
姐姐,那单纯的旋转字体,字体只能朝向屏幕?在平面上显示只能生成位图?
schlafenhamster 2017-05-22
  • 打赏
  • 举报
回复
下载“plgblt.zip”
http://download.csdn.net/detail/schlafenhamster/3343102
修改

看能不能解决问题
赵4老师 2017-05-22
  • 打赏
  • 举报
回复
Using the World Transformation -------------------------------------------------------------------------------- The world transformation is a property of the Graphics class. The numbers that specify the world transformation are stored in a Matrix object, which represents a 3 ×3 matrix. The Matrix and Graphics classes have several methods for setting the numbers in the world transformation matrix. The examples in this section manipulate rectangles because rectangles are easy to draw and it is easy to see the effects of transformations on rectangles. We start by creating a 50 by 50 rectangle and locating it at the origin (0, 0). The origin is at the upper-left corner of the client area. Rect rect(0, 0, 50, 50); Pen pen(Color(255, 255, 0, 0), 0); graphics.DrawRectangle(&pen, rect); The following code applies a scaling transformation that expands the rectangle by a factor of 1.75 in the x direction and shrinks the rectangle by a factor of 0.5 in the y direction: Rect rect(0, 0, 50, 50); Pen pen(Color(255, 255, 0, 0), 0); graphics.ScaleTransform(1.75f, 0.5f); graphics.DrawRectangle(&pen, rect); The result is a rectangle that is longer in the x direction and shorter in the y direction than the original. To rotate the rectangle instead of scaling it, use the following code instead of the preceding code: Rect rect(0, 0, 50, 50); Pen pen(Color(255, 255, 0, 0), 0); graphics.RotateTransform(28.0f); graphics.DrawRectangle(&pen, rect); To translate the rectangle, use the following code: Rect rect(0, 0, 50, 50); Pen pen(Color(255, 255, 0, 0), 0); graphics.TranslateTransform(150.0f, 150.0f); graphics.DrawRectangle(&pen, rect); --------------------------------------------------------------------------------
加载更多回复(4)

19,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧