为什么RotateTransform不起作用?

lotus_zal lotus_zal 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;//MatrixOrder

namespace DataMis.B_exercise_0528
{
/// <summary>
/// roateTransform 的摘要说明。
/// </summary>
public class roateTransform : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
Bitmap btMap=new Bitmap(500,500);
Graphics g=Graphics.FromImage(btMap);
g.Clear(Color.Beige);
Rectangle myRectangle=new Rectangle(100,100,80,50);
SolidBrush blueBrush=new SolidBrush(Color.Blue );
g.FillRectangle(blueBrush,myRectangle);

g.RotateTransform(20,MatrixOrder.Append);//并没有旋转
btMap.Save(this.Page.Response.OutputStream,ImageFormat.Gif);
}
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
lotus_zal
图表区 4,818 成员 14,133 内容