Re: How can I force the x=image(...) command to give me a window that is the same size as my image? [message #88586 is a reply to message #88585] |
Wed, 14 May 2014 14:31   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Wednesday, May 14, 2014 3:05:27 PM UTC-6, Phillip Bitzer wrote:
> On Wednesday, May 14, 2014 3:57:44 PM UTC-5, myname...@gmail.com wrote:
>
>
>
>> Helder's code also worked with no whitespace for me, but the problem seems to happen with long rectangular images. Did you try it with big_img = findgen(1000,100) ?
>
>
>
> Sorry, I missed this. But your big_img does work fine, i.e., no whitespace, for me as well.
Just to chime in, I think in IDL 8.3 and earlier, there was a hardcoded limit on the X and Y dimensions of the window. For the X dimension it was something like 450 pixels, while for Y it was 50 pixels.
If you are still having problems, you might try adding the /WIDGET keyword, to force IDL widgets instead of Java SWT widgets.
Also, even if you do end up with whitespace, why can't you use the ConvertCoord method to determine if the mouse click location is on or off the image?
-Chris
|
|
|