gapidraweffect.cs.svn-base
来自「这是一个windows mobile程序能够实现窗体运货效果非常不错」· SVN-BASE 代码 · 共 43 行
SVN-BASE
43 行
using System;
using System.Collections.Generic;
using System.Text;
using Aspecto.GapiDrawNet;
using System.Windows.Forms;
using System.Drawing;
namespace Aspecto.FlowFX
{
public abstract class GapiDrawEffect : Effect
{
private static IntPtr gapiDraw;
protected static GapiDisplay gapiDisplay;
public static IntPtr hh;
private void initialise()
{
if (gapiDisplay == null)
{
gapiDraw = GdNet.CGapiDraw_Create();
gapiDisplay = new GapiDisplay(gapiDraw);
gapiDisplay.OpenDisplay(hh, OpenDisplayOptions.GDDISPLAY_HI_RES_AWARE);
gapiDisplay.SetDisplayMode(DisplayMode.GDDISPMODE_NORMAL);
}
}
protected GapiSurface TakeScreenShot(int offset)
{
GapiSurface surface = new GapiSurface(gapiDraw);
byte[] screenBits = ImageUtils.CaptureScreen(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, offset);
surface.CreateSurface(screenBits, 0, screenBits.Length);
return surface;
}
public override void Swap(FlowForm lastForm, FlowForm nextForm, bool opening)
{
base.Swap(lastForm, nextForm, opening);
initialise();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?