The dictionary and region-of-interest manipulations So as to avoid redraws with each subsequent change. Generally you should call it after you've finished assembling the entire window, Gtk.showall(win) is sometimes needed when using the lower-level utilities of this (if there is just one), or an array if you've specified a grid of canvases. Gui returns the window gui either returns a single canvas Imshow(canvases, testimage("lighthouse")) Using ImageView, TestImages, Gtk.ShortNames Note as you zoom via the mouse, the zoom stays focused around the mouse pointer location, making it easy to zoom in on some small feature simply by pointing your mouse at it and then Ctrl-scrolling. If you scroll while holding down Shift, it pans horizontally hold down Ctrl and you affect the zoom setting. If you have a wheel mouse, zoom in again and scroll the wheel, which should cause the image to pan vertically. Ctrl-double-click on the image to restore the full region. If you click on the image without holding downĬtrl, you can drag the image to look at nearby Again, the aspect ratio of theÄisplay is preserved. Typical rubberband selection, and once you let go the image display Next, Ctrl-click and drag somewhere inside the image. Here's a comparison of the two: aspect=:auto (default) If instead you want the image to fill the pane, try See that the aspect ratio of the image is preserved when you Try resizing the image window by dragging one of its corners you'll You can use imshow() if you want to choose an image using a file
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |