1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 12:10:31 +00:00

Document cairo_place_image

This commit is contained in:
Simon Lees 2024-03-11 19:38:55 +10:30 committed by Brenden Matthews
parent 8efb3f0e0e
commit eb25f878a4

View File

@ -194,4 +194,18 @@ values:
| | 0.5 for half size etc. | | | 0.5 for half size etc. |
| | Default value: No Scaling (1.0,1.0) | | | Default value: No Scaling (1.0,1.0) |
require('cairo_imlib2_helper') in your lua file.
- name: cairo_place_image(file, cr, x, y, width, height, alpha)
desc: |-
Renders an image onto a cairo_t, using imlib2. In some cases using a cairo_t and exact coordinates is more
useful.
| Argument | Description |
|---------------------|--------------------------------------------------------------------------------------|
| file | Path to the image to render. |
| cr | The `cairo_t` to render to. |
| x,y | Position to render the image. |
| width, height | The width and height to draw the image |
| alpha | The transparency of the image 1.0 is solid 0.0 is fully translucent. |
require('cairo_imlib2_helper') in your lua file. require('cairo_imlib2_helper') in your lua file.