Re: Newbie Image Center Problem



On Jul 4, 11:47 am, fl...@xxxxxxxxxx (Floyd L. Davidson) wrote:
AikidoGuy <aikido...@xxxxxxxxx> wrote:
Hello,

I'm very new to this group. I've tried searching the archives and
looking on the web for help, but I've been unsuccessful so far.

My problem: When viewing an image at a certain zoom level, I don't
know how to pan the image to a specific (x,y) pixel co-ordinates.

Can GIMP do such a thing? I'd like the zoom level (70%, 800%, etc) to
stay what it is currently set at. Simply I'd like a dialog box where I
could enter (x,y) values and then the gui would pan and center on
those co-ordinates.

I'm not sure if you are aware of these tools, or if they
will satisfy your needs (which as stated are slightly
different than what can be done).

If you go to the <IMAGE>->View menu, you can activate
display of "rulers" and "scrollbars". Together those
allow grossly positioning an image within the window,
but it is not very precise. If the scrollbars are
displayed, at the lower right corner there will be a
"move" icon, and clicking on that allows moving the
image within the display window (again, with very course
granularity).

Also you can activate the "Navigation Window" from the
same menu, and with that you can change both the zoom
and the location of the portion displayed. When the
zoom is such that only part of the image is displayed, a
rectangle is placed on the image in the Navigation
Window to indicate the area displayed in the Image
Window, and you can click and drag on that rectangle to
move the display. Again though, it is not as precise as
what you've indicated and it would be exceedingly
difficult to center a given pixel location with an
precision at all.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) fl...@xxxxxxxxxx

Thank you both for providing some hints. Perhaps the developers of
GIMP might provide a simple little utility/dialog box that would allow
such a thing in the future?

On a slightly related note, does GIMP provide a co-ordinate system
other than pixels? I ask, because it would be even nicer if I could
use my own (x,y) co-ordinate system and then center the image based on
a point in that space, rather than mapping to pixel space and then
centering the image based on the pixel value. Well... perhaps wishful
"hoping" :)

Thanks again,
AikidoGuy
.



Relevant Pages

  • Re: Algorithm for "Windows Center" and "Windows Width"
    ... y represents the output display level. ... For 16 bit pixel values, you have a potential range of 65536 values but you have only a display range of 256 values, so some manipulation must be done. ... As an extra challenge for you, I think you will find that performing this calculation for every pixel everytime the user changes the window settings will make your application run very slowly. ... identity (no rescale values or Modality LUT, ...
    (comp.protocols.dicom)
  • Re: PDA as "X terminal" [lengthy]
    ... moves that out to the physical display (via VNC or ... finished filling in the window *before* updating the ... Each cell is a (character, ... immediately above the "write pixel" level (note that it doesn't ...
    (comp.arch.embedded)
  • Re: Hello Severian and Mike
    ... display the result to the window (or the ... >> intersections of the viewable area with the rectangles in the result ... >> pixel) is 48MB, so your program will run efficiently only on machines ... For the display, tell us more about how you are doing it. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Internet Explorer Browser Display Size
    ... If the Web page is hard coded for an 800 pixel wide display (like ... www.msn.com) and your window is wider then the right part of the window ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Code Addendum 01 - gforth: SDL/OpenGL Graphics Part V
    ... \ Load the SDL C Library Interface ... \ set to 1) when the mouse cursor is inside the display window. ... \ Pixel plot function. ... \ Plots the pixel value to the *dst surface at the given coordinates. ...
    (comp.lang.forth)