Go to the source code of this file.
|ntwWidget *||ntw_image_buffer_new_from_file (char *filename)|
|Create image buffer. |
The image_buffer is an abstract widget which is used to create other widgets. For an image_buffer, the image data is cached on disk on the client side, so creating many of the same image from a buffer is much faster than sending the data over the network each time.
The image_buffer and cached_image are the only way to include an image in a list or tree model.
When in doubt, use an image_buffer to create an image rather than creating the image directly from a file.
Create image buffer.