简体   繁体   中英

How to give name to image.display window?

Give different name for each window

require 'image'
local im = image.load('images/sampleimage.jpg')
w1 = image.display{image=im,win=w1}
w2 = image.display{image=im,win=w2}
w3 = image.display{image=im,win=w3}

When I was run that code, I am getting each display window same name("display.image"). How can i give different name to each window ?

What have i tried
I have also looked to this link but I didn't found anything for window name.

Any help would be appreciated.

Thanks in advance...

What you should do is to give legend="your_window_name" parameter to image.display method.

In your case:

w1 = image.display{image=im,win=w1,legend='your_window_name_for_w1'}
w2 = image.display{image=im,win=w2,legend='your_window_name_for_w2'}
w3 = image.display{image=im,win=w3,legend='your_window_name_for_w3'}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM