VCMFCGDI位图旋转算法.docVIP

  • 12
  • 0
  • 约1.83万字
  • 约 12页
  • 2016-12-12 发布于重庆
  • 举报
VC MFC GDI 位图旋转算法 2010-04-30 19:39 Function 1 newx = x.cos(angle) + y.sin(angle) newy = y.cos(angle) - x.sin(angle) 是以位图左上角为原点逆时针旋转X弧度 newx = x.cos(angle) - y.sin(angle) newy = y.cos(angle) + x.sin(angle) 是以位图左上角为原点顺时针旋转X弧度 Here are the steps that we take to rotate the bitmap. Create a couple of device contexts compatible with the display. One of them will be used to hold the source bitmap and the other will hold the destination bitmap (for the rotated image). Precompute the cosine and the sine of the angle. This will help save a few microseconds in subsequent computations. Compute the b

文档评论(0)

1亿VIP精品文档

相关文档