Hi,
I've created a script to present B&W photographs. First I use imread
to get the picture (TIFF), then I used centerrrect and/or offsetrect
to place it where I want it on the screen. For each picture I open
an offscreen window and use PutImage to put the picture into the
offscreen window. All of this happens in the initialization phase so
at presentation I just have to copy the windows to my current
display. All of my pictures are B&W and all are 280w X 339h (pixel
size). For some reason, though, they're coming up square at
presentation! Somewhere along the line they're being cropped. I do
define a rectangle for each picture:
pic_rect = [0,0,size(pic)];
As far as I can tell that rectangle is the correct size for the
picture. Do you have any ideas for how to display the full picture?
Thanks,
Irit Rappley
I've created a script to present B&W photographs. First I use imread
to get the picture (TIFF), then I used centerrrect and/or offsetrect
to place it where I want it on the screen. For each picture I open
an offscreen window and use PutImage to put the picture into the
offscreen window. All of this happens in the initialization phase so
at presentation I just have to copy the windows to my current
display. All of my pictures are B&W and all are 280w X 339h (pixel
size). For some reason, though, they're coming up square at
presentation! Somewhere along the line they're being cropped. I do
define a rectangle for each picture:
pic_rect = [0,0,size(pic)];
As far as I can tell that rectangle is the correct size for the
picture. Do you have any ideas for how to display the full picture?
Thanks,
Irit Rappley