![]() | ![]() |
![]() |
Previous Message |
Next Message Previous in Topic | Next in Topic Previous by Same Author | Next by Same Author Previous Page (May 2002) | Back to Main IMAGEJ Page | | ![]()
Reply
| Post a New Message |
Join or Leave IMAGEJ, or Change Options
|
Search | ![]()
Chronologically |
Most Recent First |
Wrap Text (Proportional Font) |
Don't Wrap Text (Non-proportional Font) | ![]() |
Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <[log in to unmask]> Date: Thu, 9 May 2002 16:41:10 -0400 Reply-To: ImageJ Interest Group <[log in to unmask]> Sender: ImageJ Interest Group <[log in to unmask]> From: Wayne Rasband <[log in to unmask]> Subject: Re: Problem loading images In-Reply-To: <[log in to unmask]>Open the image (File->Open) with the command recorder running (Plugins->Record) to find out exactly what the path looks like. When I open an image named a.jpg on my OS X Mac I see that the path is "/Java/ImageJ/images/a.jpg" When I open the same image on my Windows machine I see that the path is "D:\\Images\\a.jpg" So it looks like the trick for getting paths to work on Windows is to use double back slashes. -wayne On Thursday, May 9, 2002, at 04:58 AM, [log in to unmask] wrote: >> Use the ImagePlus show() method to display the image is a window. >> >> primaImm.show(); > Thank you! > Now I have one more problem: > > If i use > > ImagePlus primaImm = new ImagePlus("b.jpg"); > > i can get the image... > but if i try to give the absolute path like > ImagePlus primaImm = new ImagePlus("\b.jpg"); or with "/" > It doesn't work with any path.... > Why? > How can i use paths? > Thank you in advance! > F >
![]() |
![]() Center for Information Technology National Institutes of Health Bethesda, Maryland 20892 301 594 6248 (v) 301 496 8294 (TDD) Comments and Assistance Accessibility ![]() |