comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Locating a (bitmap) file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Locating a (bitmap) file [message #22656] Tue, 28 November 2000 00:00 Go to next message
Dave Greenwood is currently offline  Dave Greenwood
Messages: 33
Registered: October 2000
Member
Using IDL 5.3 and Windows NT I've created an IDL windows application
(thanks to the kind folks who responded to my recent posting on the
subject). My application uses a couple of color bitmap labels which
are stored as .bmp files. The application will be used on multiple
systems, possibly in a separate location on each system. I'd prefer
not to hard code the location of the .bmp files. The question is how?

I suppose I could use findfile to search candidate locations, but
that still requires advance knowledge of each system where the
application is used.

I wouldn't mind requiring the .bmp and .sav files to be in the same
directory if I could somehow find out from within my application
where the .sav file is located. Is that possible? (I tried !DIR but
it points to some place in the RSI distribution.)

Is there a way to return a color bitmap from an IDL function like you
can with a b/w bitmap? That way I could compile the function and
store it in the save file.

Since I'm not particularly experienced with IDL, I'm hoping that I've
missed some (potentially obvious) way of dealing with this.

Thanks,
Dave
--------------
Dave Greenwood Email: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
Re: Locating a (bitmap) file [message #22742 is a reply to message #22656] Sun, 03 December 2000 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dave Greenwood wrote:
>
> Using IDL 5.3 and Windows NT I've created an IDL windows application
> (thanks to the kind folks who responded to my recent posting on the
> subject). My application uses a couple of color bitmap labels which
> are stored as .bmp files. The application will be used on multiple
> systems, possibly in a separate location on each system. I'd prefer
> not to hard code the location of the .bmp files. The question is how?
>
> I suppose I could use findfile to search candidate locations, but
> that still requires advance knowledge of each system where the
> application is used.

We have a function file_search in our library

bmp_file=file_search('img.bmp',/use_path)


http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/file_search.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/file_search.sav




On the other hand you may use a color definition routine like

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/ct_ncdf.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/ct_ncdf.sav


Or would you like to have a funtion like


bmp=bmp_definitions('play')

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/bmp_definitions.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/bmp_definitions.sav




For further routines and copyright and licence.
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml



regards

Reimar




>
> I wouldn't mind requiring the .bmp and .sav files to be in the same
> directory if I could somehow find out from within my application
> where the .sav file is located. Is that possible? (I tried !DIR but
> it points to some place in the RSI distribution.)
>
> Is there a way to return a color bitmap from an IDL function like you
> can with a b/w bitmap? That way I could compile the function and
> store it in the save file.
>
> Since I'm not particularly experienced with IDL, I'm hoping that I've
> missed some (potentially obvious) way of dealing with this.
>
> Thanks,
> Dave
> --------------
> Dave Greenwood Email: Greenwoodde@ORNL.GOV
> Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL problem under Mandrake Linux
Next Topic: Re: Classification of objects in 2D image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:13:47 PDT 2025

Total time taken to generate the page: 0.00516 seconds