Happens with sample project also.
- Code: Select all
public byte[] Deskew(byte[] voBmp)
{
Int32 iImageID=0;
GdPictureImaging oGdPictureImaging = new GdPictureImaging();
try
{
oGdPictureImaging.SetLicenseNumber("xxxx"); // Please, replace XXXX by a valid demo or commercial license key.
//load image -NC KE 9/6/2011
iImageID = oGdPictureImaging.CreateGdPictureImageFromByteArray(voBmp);
// deskew -NC KE 9/6/2011
oGdPictureImaging.AutoDeskew(iImageID);
byte[] oBuffer = null;
Int32 iRead = 0;
//get page bytes and raise page event -NC KE 9/6/2011
oGdPictureImaging.SaveAsByteArray(iImageID, ref oBuffer, ref iRead, oGdPictureImaging.GetImageFormat(iImageID), 0);
return oBuffer;
}
finally
{
oGdPictureImaging.ReleaseGdPictureImage(iImageID);
oGdPictureImaging.Dispose();
}
}
- Code: Select all
Activation context generation failed for "C:\Users\kevinearley.NCSOS\AppData\Local\Apps\2.0\X3OMXKYM.976\NL2E1B1R.RX8\sosk...app_82790aa27e2876c6_0350.0000_a2c0ba056ce5ff55\GdPicture.NET.filters.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
- Code: Select all
System.DllNotFoundException: Unable to load DLL 'GdPicture.NET.filters.dll': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)
at gdpicture_ᜦ.gdpicture_ᜂ(IntPtr A_0, Int32 A_1, Int32 A_2, IntPtr A_3, Int32 A_4, Int32 A_5, Int32 A_6, Byte A_7)
at gdpicture_ᜦ.gdpicture_ᜀ(IntPtr A_0, Int32 A_1, Int32 A_2, IntPtr A_3, Int32 A_4, Int32 A_5, Int32 A_6, Byte A_7)
at GdPicture.GdPictureImaging.ConvertTo1Bpp(Int32 ImageID, Byte Threshold)
at GdPicture.GdPictureImaging.AutoDeskew(Int32 ImageID, Single MaxAngleOfResearch, Color BackColor)
at GdPicture.GdPictureImaging.AutoDeskew(Int32 ImageID, Single MaxAngleOfResearch)
at GdPicture.GdPictureImaging.AutoDeskew(Int32 ImageID)
at Soskb.OpenImagingTools.Processing.Deskew(Byte[] voBmp)
at Soskb.WpfControls.ImageViewer.Deskew()
at Soskb.Main.ImageViewer.Deskew() ___
