Gio.BytesIcon

const Gio = imports.gi.Gio;

let bytesIcon = new Gio.BytesIcon({
    bytes: value,
});
  

Gio.BytesIcon specifies an image held in memory in a common format (usually png) to be used as icon.

Hierarchy

  • GObject.Object
    • Gio.BytesIcon