Page History
...
The Thumbnail layout also ignores the Alignment property and insures the image will always be displayed in it's original proportions. If the image is smaller than the control, it is position within the control according to the Alignment property. If it is larger, it is shrunken to fit within the control without compromising the image's aspect ratio.
...
Code Block |
---|
// Stretch the image to fill the control Set_Property(@Window:".OLE_PICTURE", "OLE.Layout", "Stretch") // Show the image in thumbnail view, always maintaining the aspect ratio Set_Property(@Window:".OLE_PICTURE", "OLE.Layout", "TH") // Show the image in pan view, allowing the user to pan and zoom Set_Property(@Window:".OLE_PICTURE", "OLE.Layout", "Pan") |