Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, February 26, 2007 3:22:14 AM(UTC)
alwayssmiling

Groups: Registered
Posts: 27


Hi,


          How to set
filters in raster file open dialog. I want to show only tiff files in
the File open dialog. How can i acheieve this task using raster file open dialog().

Thank u.

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, February 27, 2007 12:26:54 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Please provide me with the following information:
- What is the exact LEADTOOLS version that you use?
- What is the exact programming interface (COM, .Net, API, C++ Class Library, etc.) that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, February 28, 2007 9:20:19 PM(UTC)
alwayssmiling

Groups: Registered
Posts: 27


Hi,

Im using leadtools raster imaging pro 15. And the programming interface is .net C#
 
#4 Posted : Sunday, March 4, 2007 12:32:57 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You can try to use the RasterOpenDialog.Filter Property to get or set the current file name filters array, which determines the choices that appear in the "Files of type" box in the dialog box.
You can use the following code:
+-----------------------------+
...
RasterOpenDialog openDlg = new RasterOpenDialog(rasterCodecs);
 
   openDlg.Filter = new RasterOpenDialogLoadFormat[]
   {
      new RasterOpenDialogLoadFormat ( "All Files", "*.*" ),
      new RasterOpenDialogLoadFormat ( "LEAD", "*.cmp" )
   };
...
+-----------------------------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.049 seconds.