我想让我播放的powerpoint旋转180度,要怎么做,是不是应该调用api,希望大家能给出具体代码,谢谢!

解决方案 »

  1.   

    窗体从小变大,关闭从大变小效果,希望对你有用using System;
    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);
    }

    }
    }
      

  2.   

    用C#做?
    不用API?
    好像不行.
      

  3.   


    用GDI+倒过来绘图不知道行不行?