CRdraw_image | R Documentation |
Draws an image in image_list to rendering target. Argument index specifies which image in image_list to draw.
CRdraw_image(graphics_list, image_list, index, rect_list, status = NULL)
graphics_list |
List containing pointers to window, renderer etc. created with |
image_list |
List containing one or more images previously loaded with |
item |
Index of image in image_list to be drawn. |
rect_list |
List defining rectangle in window to draw image to, must contain elements x, y, w, h. |
status |
Optional list |
Images are first loaded using CRload_image
, which creates an image_list. Images are off-screen resources that can be copied to the screen using CRdraw_image
. Images are different internally from textures: the latter are more flexible, for example when copying them to screen, and are also more efficient than images, which are slow to copy. If showing an image via CRdraw_image
is too slow, the image can first be drawn to a texture (see CRcreate_texture
), which is faster and more flexible to copy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.