thank you sir
but I did not get result, I do in two ways
case 1:while i run the program in windows application using following code i got "RasterException was unhandled" and "j2k codec is needed to use this feature" and I installed j2k-Codec also but when add this .dll files i got an error
string SinglePageFileName = @"D:\jayaram\images\JPEG2000\image1.jp2";
//Leadtools.Codecs.RasterCodecs.Startup();
Leadtools.Codecs.RasterCodecs codecs = new Leadtools.Codecs.RasterCodecs();
Leadtools.RasterImage image = codecs.Load(SinglePageFileName, 0, Leadtools.Codecs.CodecsLoadByteOrder.Bgr, 1, 1);
codecs.Save(image, @"D:\jayaram\images\destfile\Test.bmp", Leadtools.RasterImageFormat.Bmp, 24, 1, 1, 1, Leadtools.Codecs.CodecsSavePageMode.Overwrite);
image.Dispose();
codecs.Dispose();
//Leadtools.Codecs.RasterCodecs.Shutdown();
case 2:while i run the program in Console application using following code i got "FileLoadException was unhandled" "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information".
after I got this error in the configuration file " C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer40.exe.config" i whave written like
But after configure I did not get the result
In this case I wrote the code in following two ways
1)string SinglePageFileName = @"D:\jayaram\images\JPEG2000\image1.jp2";
//Leadtools.Codecs.RasterCodecs.Startup();
Leadtools.Codecs.RasterCodecs codecs = new Leadtools.Codecs.RasterCodecs();
Leadtools.RasterImage image = codecs.Load(SinglePageFileName, 0, Leadtools.Codecs.CodecsLoadByteOrder.Bgr, 1, 1);
codecs.Save(image, @"D:\jayaram\images\destfile\Test.bmp", Leadtools.RasterImageFormat.Bmp, 24, 1, 1, 1, Leadtools.Codecs.CodecsSavePageMode.Overwrite);
image.Dispose();
codecs.Dispose();
Console.WriteLine("welcome");
//Leadtools.Codecs.RasterCodecs.Shutdown();
}
2)
RasterCodecs codecs = new RasterCodecs();
RasterImage currentImage = codecs.Load("~\\D:\\jayaram\\images\\300px-JPEG_JFIF_and_2000_Comparison.png");
codecs.Options.Jpeg.Save.QualityFactor = 125;
codecs.Save(currentImage, "~\\D:\\jayaram\\images\\JPEG2000\\IMAGE1_255.j2k", RasterImageFormat.TifCmp, 8);
I think you have understood my problem wt wil i do