Shiny Language Reference

Language Reference > Image Functions


Image Functions

These statements operate on a variable of type IMAGE

 

createimage - Creates an object of type IMAGE, loads a bitmap from disk into the associated variable

drawimage - Draws the specified image into the display panel, optionally resizing it when drawing

getimagewidth - Returns the width in pixels of the specified image

getimageheight - Returns the height in pixels of the specified image

rotateimage - Rotates an image in memory

mirrorimageh - Horizontally mirrors (flips) an image in memory

mirrorimagev - Vertically mirrors (flips) an image in memory

resizeimage - Resizes an image in memory

setimagegamma - Alters the gamma ramp of an image

setimagebrightness - Alters the brightness of an image

setimagecontrast - Alters the contrast of an image

invertimage - Inverts (negates) an image

saveimagebmp - Saves an image to disk as a bitmap (*.bmp) file

saveimagejpg - Saves an image to disk as a JPEG (*.jpg) file

saveimagepng - Saves an image to disk as a 32bit PNG (*.png) file