Stack Display In Smaller Window
Posted: Fri Sep 23, 2011 9:36 am
Hi!
Has anyone had to display an image in a stack smaller than the image? Or in other words, is there a way to keep the image large but only display part of it in a smaller window, with scrollBars?
Another way to ask this - Can I make a stack (with the image) invisible, then put another smaller stack on top of it and using blend, make only the portion of the image visible that is under the stack? That way I could make it act as if it was in a scrolling window.
I am trying to work with large images (3k X 5k or so) - I want the image to stay large (much bigger than my screen, so the bitmap imageData stays at it's original scale to eliminate LC resizing artifacts for when I later export it) and invisible, but I only want to see (and grab the imageData of) a small part of it through a small window with scroll bars.
My current method is to import the original image, put the imageData in a buffer and discard the original, then figure out which part of the buffer the small window displays and copying it over, acting on it, and copying it back - it's not a very efficient process. I would like to be able to "preview" my action on the subwindow before committing to the larger image.
I tried making it the background of a field by making a scrolling field as big as the original image then resizing it. That kept the image at it's resolution but the scroll bars (or moving) didn't affect what part of the image was showing.
Thanks,
Has anyone had to display an image in a stack smaller than the image? Or in other words, is there a way to keep the image large but only display part of it in a smaller window, with scrollBars?
Another way to ask this - Can I make a stack (with the image) invisible, then put another smaller stack on top of it and using blend, make only the portion of the image visible that is under the stack? That way I could make it act as if it was in a scrolling window.
I am trying to work with large images (3k X 5k or so) - I want the image to stay large (much bigger than my screen, so the bitmap imageData stays at it's original scale to eliminate LC resizing artifacts for when I later export it) and invisible, but I only want to see (and grab the imageData of) a small part of it through a small window with scroll bars.
My current method is to import the original image, put the imageData in a buffer and discard the original, then figure out which part of the buffer the small window displays and copying it over, acting on it, and copying it back - it's not a very efficient process. I would like to be able to "preview" my action on the subwindow before committing to the larger image.
I tried making it the background of a field by making a scrolling field as big as the original image then resizing it. That kept the image at it's resolution but the scroll bars (or moving) didn't affect what part of the image was showing.
Thanks,