public static int GetBitmapBuffer(string FileName, int Width, int Level, bool bDithering, Byte[] pOutBuffer, uint cbBuf, ref uint pcbNeeded) { if (Is64Bit()) { return(BXLAPI_x64.GetPrintBitmapBuf(FileName, Width, Level, bDithering, pOutBuffer, cbBuf, ref pcbNeeded)); } else { return(BXLAPI_x86.GetPrintBitmapBuf(FileName, Width, Level, bDithering, pOutBuffer, cbBuf, ref pcbNeeded)); } }