Interface Image
access this type via: ui.Image (provides, requires or uses)
--- extends:GraphicsObject
An image widget for graphical applications.
Constants
int FIT_NONE
int FIT_STRETCH
int FIT_SCALE
int FIT_FILL
Functions
Image(storePixelMap pm)
void setPixels(storePixelMap b)
void setFrameSize(int w, int h)
void setFrameFit(int mode)
void setRotation(int degrees)
Constants
FIT_NONE Possible value for setFrameFit(), indicating that the source pixels should be rendered as-is, which may clip them at the frame boundary.
FIT_STRETCH Possible value for setFrameFit(), indicating that the source pixels should be stretched to match the frame dimensions.
FIT_SCALE Possible value for setFrameFit(), indicating that the source pixels should be scaled to fit the frame, and centered inside the frame.
FIT_FILL Possible value for setFrameFit(), indicating that the source pixels should be scaled to fit the frame, centered, and clipped to avoid empty frame space if the source image was bigger than the frame.
Image(storePixelMap pm)
Instantiate a new image, using the given pixel map.
void setPixels(storePixelMap b)
Set the pixel map used by this image widget.
void setFrameSize(int w, int h)
Set the size of the image widget.
void setFrameFit(int mode)
Configure how the pixel map used by this image widget is fitted into the widget's size, for example by stretching or scaling it.
void setRotation(int degrees)
Set the rotation of the source pixels in this image.