我想让我播放的powerpoint旋转180度,要怎么做,是不是应该调用api,希望大家能给出具体代码,谢谢!
解决方案 »
- 在问:C#.net中的子函数带参数,其中的参数是数组怎么写?
- 本人初学,这个换成C#应该如何写呢?
- 急急!!!无法加载 DLL“xxx_dll” 找不到指定的模块。 (异常来自 HRESULT0x8007007E)
- [攒分贴]每日小知识
- 如何调用运行时添加的CheckBox控件的事件。
- QQ,联众是用什么工具开发的?
- 关于显示图片的问题(谢谢了,急,在线)
- MVVM View 怎么组织
- 谁能解开这个迷团??
- 我的 win98 怎么安装不上 在 MS 中国下载的 .net SDK 中文版
- 使用wmi连接远程机子的时候为什么提示“RPC服务器不可用”?
- 有没有C# 对Web 应用程序、自定义控件、事件比较了解的专家,网上聊聊
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;namespace aaa
{
/// <summary>
/// startform 的摘要说明。
/// </summary>
public class startform : System.Windows.Forms.Form
{
private System.ComponentModel.IContainer components;
[System.Runtime.InteropServices.DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd,int dwTime, int dwFlags);
const int AW_HOR_POSITIVE = 0x0001;
const int AW_HOR_NEGATIVE = 0x0002;
const int AW_VER_POSITIVE = 0x0004;
const int AW_VER_NEGATIVE = 0x0008;
const int AW_CENTER = 0x0010;
const int AW_HIDE = 0x10000;
const int AW_ACTIVATE = 0x20000;
const int AW_SLIDE = 0x40000;
const int AW_BLEND = 0x80000;
public startform()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
} /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
} #region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(startform));
//
// startform
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(608, 408);
this.ControlBox = false;
this.Name = "startform";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.TopMost = true;
this.Closing += new System.ComponentModel.CancelEventHandler(this.startform_Closing);
this.Load += new System.EventHandler(this.startform_Load); }
#endregion private void startform_Load(object sender, System.EventArgs e)
{
AnimateWindow(this.Handle,1000, AW_CENTER | AW_ACTIVATE);
} private void startform_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
AnimateWindow(this.Handle, 1000, AW_CENTER | AW_HIDE| AW_VER_NEGATIVE);
}
}
}
不用API?
好像不行.
用GDI+倒过来绘图不知道行不行?