⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gapidrawh.cs.svn-base

📁 这是一个windows mobile程序能够实现窗体运货效果非常不错
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
		// GDERR_NOVIDEOSURFACE: The surface is not stored in video memory
		GDERR_NOVIDEOSURFACE              = ((UInt32)0xC8660140),
		// GDERR_SURFACELOST: The contents of a video surface was destroyed
		GDERR_SURFACELOST                 = ((UInt32)0xC8660150),
		// GDERR_SURFACEBUSY: A surface is already busy with a hardware blit operation
		GDERR_SURFACEBUSY                 = ((UInt32)0xC8660160)
	
//		GD_OK                             = 0,
//		// OUTOFMEMORY: Memory allocation failed.
//		GDERR_OUTOFMEMORY                 = 1,
//		// INVALIDPARAMS: One or more arguments are either NULL or contain invalid values.
//		GDERR_INVALIDPARAMS               = 2,
//		// NOTLOCKED: The surface is not locked, and cannot be unlocked.
//		GDERR_NOTLOCKED                   = ((UInt32)0xC8660010),
//		// NODC: Cannot unlock surface using DC since it was not locked using GetDC.
//		GDERR_NODC                        = ((UInt32)0xC8660020),
//		// DCLOCKED: The surface is locked using a DC, and cannot be unlocked using Unlock().
//		GDERR_DCLOCKED                    = ((UInt32)0xC8660030),
//		// CANTCREATEDC: Attempt to create DC failed.
//		GDERR_CANTCREATEDC                = ((UInt32)0xC8660040),
//		// BITMAPWRITEERROR: The bitmap file could not be written.
//		GDERR_BITMAPWRITEERROR            = ((UInt32)0xC8660050),
//		// BITMAPNOTFOUND: The specified bitmap could not be found.
//		GDERR_BITMAPNOTFOUND              = ((UInt32)0xC8660060),
//		// INVALIDBITMAP: The bitmap file could not be parsed.
//		GDERR_INVALIDBITMAP               = ((UInt32)0xC8660070),
//		// NOTINITIALIZED: All surface objects must be created before use (OpenDisplay/CreateSurface).
//		GDERR_NOTINITIALIZED              = ((UInt32)0xC8660080),
//		// INVALIDSURFACETYPE: Cannot call CreateSurface on objects of type CGapiDisplay.
//		GDERR_INVALIDSURFACETYPE          = ((UInt32)0xC8660090),
//		// INCOMPATIBLEPRIMARY: Primary surface does not exist or is aligned different to the current surface.
//		GDERR_INCOMPATIBLEPRIMARY         = ((UInt32)0xC86600a0),
//		// PRIMARYSURFACEALREADYEXISTS: Cannot call OpenDisplay if a primary surface already has been assigned.
//		GDERR_PRIMARYSURFACEALREADYEXISTS = ((UInt32)0xC86600b0),
//		// LOCKEDSURFACES: One or more surfaces are locked, preventing operation.
//		GDERR_LOCKEDSURFACES              = ((UInt32)0xC86600c0),
//		// LOCKEDKEYS: Keys have already been locked in a previous operation.
//		GDERR_LOCKEDKEYS                  = ((UInt32)0xC86600d0),
//		// INVALIDRECT: One or more GDRects are invalid.
//		GDERR_INVALIDRECT                 = ((UInt32)0xC86600e0),
//		// BACKBUFFERLOST: The back surface of the display was lost during a flip, please request a new using GetBackBuffer
//		GDERR_BACKBUFFERLOST              = ((UInt32)0xC86600f0),
//		// FRAMETIMEOVERFLOW: Unable to maintain target frame rate
//		GDERR_FRAMETIMEOVERFLOW           = ((UInt32)0x48660100),
//		// GDERR_INVALIDMODE: Invalid display mode
//		GDERR_INVALIDMODE                 = ((UInt32)0x48660110),
//		// GDERR_UNSUPPORTEDMODE: Unsupported display resolution or incompatible (8-bit) device
//		GDERR_UNSUPPORTEDMODE             = ((UInt32)0xC8660120),
//		// GDERR_NOGAPI: The file "gx.dll" is not available on the target device.
//		GDERR_NOGAPI                      = ((UInt32)0xC8660130)
	}

//

//
//	public struct GDSURFACEDESC
//	{
//		public int dwWidth;
//		public int dwHeight;
//		public int lPitch;
//		public short pSurface;
//		public int dwPixelFormat;
//	};
//





//	public struct GDTEXTFX
//	{
//		public int dwBorderColor;
//	};

	

	public struct GDKEYLIST
	{
		public int vkUp;
		public int vkDown;
		public int vkLeft;
		public int vkRight;
		public int vkStart;
		public int vkA;
		public int vkB;
		public int vkC;
	};

	public struct GDBUFFERDESC
	{
		public int dwWidth;
		public int dwHeight;
		public int xPitch;
		public int yPitch;
		public IntPtr pBuffer;  /// check!
		public int dwPixelFormat;
	};

	public struct GDBLTFX
	{
		public int dwFillColor;
		public int dwOpacity;
		public int dwRotationAngle;
		public int dwRotationScale;
		public System.Drawing.Point rotationCenter;
	};
	//	public struct GDBLTFX
	//	{
	//		public int dwFillColor;
	//		public int dwOpacity;
	//		public int dwRotationAngle;
	//		public int dwRotationScale;
	//	};

	public struct GDBLTFASTFX
	{
//		public int dwFillColor;
//		public int dwOpacity;
//		public int lTintAngle;
//		public int dwTintOpacity;
//		public int dwColorizeColor;
//		public int dwColorizeOpacity;

//		public int   dwFillColor;       // Uses the specified color instead of source image color
//		public int   dwOpacity;         // Specifies opacity of the source image (0 transparent - 128 (50% quick alpha) - 255 opaque)
//		public int   dwMultiplyColor;   // Color multiply: Uses the specified color to overlay source
//		public int   dwMultiplyOpacity; // Color multiply: Uses the specified value to control amount of color overlay (0-255)
//		public int   lTintAngle;        // Tint: Uses the specified angle to adjust source hue ((-180)-(180) degrees)
//		public int   dwTintOpacity;     // Tint: Uses the specified value to control the tint blending (0-255)
//		public int   dwColorizeColor;   // Colorize: Uses the specified color to colorize source

		public int   dwFillColor;       // Uses the specified color instead of source image color
		public int   dwOpacity;         // Specifies opacity of the source image (0 transparent - 128 (50% quick alpha) - 255 opaque)
		public int   dwFXparam1;        // Parameter1 to send to the blit effects. See documentation for details.
		public int   dwFXcolor1;        // Color1 to send to the blit effects. See documentation for details.
		public int   dwFXopacity;       // The amount of blending to use for the effect. See documentation for details.

	};

	public struct GDALPHABLTFX
	{
		public int dwOpacity;
	};
	//	public struct GDALPHABLTFX
	//	{
	//		public int dwFillColor;
	//		public int dwOpacity;
	//	};

	public struct GDALPHABLTFASTFX
	{
        /// <summary>
        /// Specifies opacity of the source image (0 transparent - 128 (50% quick alpha) - 255 opaque). 
        /// </summary>
		public int dwOpacity;
	};
	//	public struct GDALPHABLTFASTFX
	//	{
	//		public int dwFillColor;
	//		public int dwOpacity;
	//	};

	public struct GDPIXELFX
	{
		public int dwOpacity;
	};

	public struct GDLINEFX
	{
		public int dwOpacity;
	};

	public struct GDFILLRECTFX
	{
		public int dwOpacity;
	};

	public struct GDFONTFX
	{
		public int lTracking;
	};

	public struct GDPIXEL
	{
		public int x;
		public int y;
		public int dwColor;
		public int dwFlags;
		public int  pixelfx;
//		public int dwX;
//		public int dwY;
//		public int dwColor;
//		public int dwFlags;
//		public GDPIXELFX pixelfx;
	};

	unsafe public struct GDPIXELNODE
	{
		public GDPIXEL pixel;
		public GDPIXELNODE* pNext;
	};

	public struct GDSURFACE
	{
		public int dwFlags;
		public int dwWidth;
		public int dwHeight;
		public int xPitch;
		public int yPitch;
		public int xyOffset;
		public int dwSize;
		public int dwOrientation;
		public int ckSrcBlt;
		public GDRect viewport;
		public IntPtr pVideoLink;
		public IntPtr pBuffer;
	};
	//	public struct GDSURFACE
	//	{
	//		public int dwWidth;
	//		public int dwHeight;
	//		public int xPitch;
	//		public int yPitch;
	//		public int xyOffset;
	//		public int dwSize;
	//		public short pSurface;
	//		public int dwOrientation;
	//		public int dwFlags;
	//		public int ckSrcBlt;
	//	};

	public struct GDLOCKEDSURFACE
	{
		public IntPtr hLockedDC;
		public IntPtr hLockedHandle;
		public IntPtr pBuffer;
	};

	public struct GDFONTKERNING
	{
		public char tcChar1;
		public char tcChar2;
		public int lOffset;
		public IntPtr pNext;
	};

	public struct GDBITMAPFONT
	{
		public int dwTop;
		public int dwWidth;
		public int dwHeight;
		public int lTracking;
		public int pOffset;
		public int pWidth;
		public int pKerningLeft;
		public int pKerningRight;
		public GDFONTKERNING pKerningList;
		public int dwFlags;
	};

	public struct GDTIMER
	{
		public float nTargetFrameTime;
		public float nActualFrameTime;
		public float nActualThreadTime;
		public int dwTargetFrameRate;
		public int dwFrameTimes;
		public int dwThreadTimes;
		public int dwLastFrameTime;
		public int dwFrameTimeIndex;
		public int dwFrameIndex;
		public int dwTickCount;
		public int dwLowResStartTick;
		public Int64 nPerformanceStartTick;
		public Int64 nPerformanceFrequency;
		public int dwFlags;
	};

	public struct GDCURSOR
	{
		public System.Drawing.Point position;
		public System.Drawing.Point hotspot;
		public int dwFrameCount;
		public int dwFrameStep;
		public int dwFrameIndex;
		public int dwUpdateIndex;
		public int dwFlags;
	};
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -