Package: gdk
Function gdk:texture-download
Lambda Listgdk:texture-download (texture data stride) ArgumentsDetails
Downloads the texture into local memory.
This may be an expensive operation, as the actual texture data may reside on
a GPU or on a remote display server. The data format of the downloaded data is equivalent to the :argb32 value of the cairo:format-t enumeration, so every downloaded pixel requires 4 bytes of memory. Examples
(let ((surface (cairo:image-surface-create :argb32
(gdk:texture-width texture)
(gdk:texture-height texture))))
(gdk:texture-download texture
(cairo:image-surface-data surface)
(cairo:image-surface-stride surface))
(cairo:surface-mark-dirty surface)
... ) | See also |
2025-07-30