S
Sean Cross
Any idea how I could speed up the following p/invoke operation. It is
being called 6000 times a second so any speed up would be welcome.
c# Method:
public void BltFast(int dwX, int dwY, GapiSurface srcSurface,
ref GDRect srcRect, BltFastOptions dwFlags, ref GDBLTFASTFX fastFx)
{
GdNet.CGapiSurface_BltFast(unmanagedGapiObject, dwX, dwY,
srcSurface.GapiObject, ref srcRect, (int)dwFlags, ref fastFx);
}
P/Invoke:
[DllImport("gd300.dll")]
public static extern UInt32 CGapiSurface_BltFast(IntPtr pSurface, int
dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, int dwFlags, ref
GDBLTFASTFX pGDBltFastFx);
C++ Declaration:
GAPIDRAW_API HRESULT __stdcall CGapiSurface_BltFast(CGapiSurface*
pSurface, LONG destX, LONG destY, CGapiSurface* pSrcSurface, RECT*
pSrcRect, DWORD dwFlags, GDBLTFASTFX* pGDBltFastFx);
Sean
---------------------------------------
Sean Cross
mailto:[email protected]
Pics Print - The photo printing solution for Windows.
http://www.picsprint.com
http://www.Intuitex.com - Multimedia software for Windows,
Gapidraw.net and hekkus.net libraries for the compact framework
being called 6000 times a second so any speed up would be welcome.
c# Method:
public void BltFast(int dwX, int dwY, GapiSurface srcSurface,
ref GDRect srcRect, BltFastOptions dwFlags, ref GDBLTFASTFX fastFx)
{
GdNet.CGapiSurface_BltFast(unmanagedGapiObject, dwX, dwY,
srcSurface.GapiObject, ref srcRect, (int)dwFlags, ref fastFx);
}
P/Invoke:
[DllImport("gd300.dll")]
public static extern UInt32 CGapiSurface_BltFast(IntPtr pSurface, int
dwX, int dwY, IntPtr pSrcSurface, ref GDRect pSrcRect, int dwFlags, ref
GDBLTFASTFX pGDBltFastFx);
C++ Declaration:
GAPIDRAW_API HRESULT __stdcall CGapiSurface_BltFast(CGapiSurface*
pSurface, LONG destX, LONG destY, CGapiSurface* pSrcSurface, RECT*
pSrcRect, DWORD dwFlags, GDBLTFASTFX* pGDBltFastFx);
Sean
---------------------------------------
Sean Cross
mailto:[email protected]
Pics Print - The photo printing solution for Windows.
http://www.picsprint.com
http://www.Intuitex.com - Multimedia software for Windows,
Gapidraw.net and hekkus.net libraries for the compact framework