Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)
Started by scpeterson@mbakercorp.com at 04-07-2006 11:42. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  04-07-2006, 11:42
scpeterson@mbakercorp.com is not online. Last active: 4/7/2006 4:33:29 PM scpeterson@mbakercorp.com

Not Ranked
Joined on 02-11-2004
Posts 2
Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)
Reply Quote

I have a database with a field containing filepaths of individual JPG's.  I have users select a feature and then the images are selected based on the selected feature.  All the images are in one directory, so I can't use the LoadThumbnails method, because that would load all the images.  After I query the database and get the names of the images I need, I'm not sure how to create thumbnails in the thumbnail browser.  When I used the DLL/OCX thumbnail browser in version 14, I used the CreateFromFile method, which worked great.  Is there anything like this in the .NET version?  If not, how do I accomplish this?

Thanks,

Scott


   Report 
  04-11-2006, 9:56
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)
Reply Quote
-Try to use RasterThumbnailBrowser.LoadThumbnails Method and in the searchPattern try to set the specific file name.

-Load( _
   ByVal fileName As String, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal bitsPerPixel As Integer, _
   ByVal flags As RasterSizeFlags, _
   ByVal order As CodecsLoadByteOrder

By setting the Width and Height.

Does this solve your problem?

Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  04-11-2006, 19:28
scpeterson@mbakercorp.com is not online. Last active: 4/7/2006 4:33:29 PM scpeterson@mbakercorp.com

Not Ranked
Joined on 02-11-2004
Posts 2
Re: Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)
Reply Quote

Thanks for your reply.

I think I know what you mean. I wasn't sure what your last sentence "By setting the Width and Height" means, however.

One thing I'm not sure about, is how to get multiple files in my search string.  The features in my database can have 0 or more pictures associated with them.  So, if my feature has two files, one named 40-04-01.jpg and one named 35-09-B4.jpg, how do I create a seach string that works?  I tried "40-04-01.jpg, 35-09-B4.jpg" and "40-04-01.jpg; 35-09-B4.jpg" but neither worked.  Any suggestions would be most welcome.

Thanks,

Scott


   Report 
  04-13-2006, 13:47
Otis is not online. Last active: 10/1/2008 9:21:00 PM Otis



Top 10 Posts
Joined on 10-19-2004
Charlotte, NC
Posts 308
Re: Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)
Reply Quote

The Thumbnailbrowser will only browse for a directory of images, it will not accept specific files. You should use the method below if you have specific files you want thumbnails for. As for the width and height, this is up to you. Whatever size you would like your thumbnails to be, you would specify it here.

RasterCodecs.Load Method (String, Int32, Int32, Int32, RasterSizeFlags, CodecsLoadByteOrder)


Otis Goodwin
LEAD Developer Support
   Report 
Post
LEAD Support Fo... » Developer » Database » Re: Load thumbnails to thumbnail browser from individual file paths in database (.NET 14.5)

Powered by Community Server, by Telligent Systems