iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ResizePolicy Class Reference

#include <nrt/Graphics/ImageRenderer.H>

ImageRenderer resize methods.

When resizing an image, several options are avialble:

nrt::ImageRendererResizePolicy::stretch - Stretches an image to fill the window, ignoring the aspect ratio. When an image is replaced, no resizing of the window occurs.

nrt::ImageRendererResizePolicy::best - Makes the image as large as possible in the confines of the current window size while preserving the original aspect ratio of the image.

nrt::ImageRendererResizePolicy::actual - Keeps the image at its actual size regardless of other settings such as initial window size. New images will resize the window appropriately.

nrt::ImageRendererResizePolicy::preserve - Forces the aspect ratio of the window to preserve the original image ratio. New images will resize the window to its actual size.


The documentation for this class was generated from the following file: