LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Setting the filters in raster file open dialog
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, February 26, 2007 3:22:14 AM(UTC)
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.
#2
Posted
:
Tuesday, February 27, 2007 12:26:54 AM(UTC)
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)
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)
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
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Setting the filters in raster file open dialog
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.