Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How can I load image to j2k control in c#.net
Started by hemantbkulkarni at 11-09-2006 2:13. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  11-09-2006, 2:13
hemantbkulkarni is not online. Last active: 6/29/2007 10:18:05 AM hemantbkulkarni

Top 200 Posts
Joined on 11-09-2006
Posts 15
How can I load image to j2k control in c#.net
Reply Quote

I am using J2K Activex control in project .

It displays only .j2k images. I want to display a image stored in database as 16 bit image in sqlserver. I am not able to convert the bit stream to .j2k image.

so what should i do to convert this bit stream image stored in sql srver to .j2k image so that i can display in the J2K Web Control.

Please Help Me In This Regard.

With Regards

 Hemant BK


   Report 
  11-09-2006, 10:43
Qasem Lubani is not online. Last active: 9/28/2008 12:30:21 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,090
Re: How can I load image to j2k control in c#.net
Reply Quote

You should be able to convert to J2K by loading the image using any of our imaging toolkits and saving it as J2k. For example, you could use our Raster IO COM object to do that.


Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  11-10-2006, 1:30
hemantbkulkarni is not online. Last active: 6/29/2007 10:18:05 AM hemantbkulkarni

Top 200 Posts
Joined on 11-09-2006
Posts 15
Re: How can I load image to j2k control in c#.net
Reply Quote

Thanks for the information.

I am already using raster io only. My image is stored in database as image type.

How to load this information into raster io?

sould  I use loadbuffer or loadmemory function of raster io?

could  you send me an example or few lines of code?

 


   Report 
  11-10-2006, 13:54
GregR is not online. Last active: 10/10/2008 11:46:18 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,621
Re: How can I load image to j2k control in c#.net
Reply Quote
Your Main COM Object Helpfile should have some tutorials on using Databases, "Loading and Saving Images Using Databases" is probably the best one for covering the basics.  They will not have examples specific to C#, but there is C++ and VB and the methodology will be the same:

1. load the data from the database into an array

2. copy that data into a LEADRasterVariant object

3. use the RasterIO.LoadArray method.

You should also be able to use LoadBuffer and LoadMemory as well, but it depends on how the file is stored in memory.  For an explanation on which to use when, read the documentation on LoadBuffer.


Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Enduser » LEADViEW » Re: How can I load image to j2k control in c#.net

Powered by Community Server, by Telligent Systems