Blender  V3.3
Variables
GHOST_IconX11.h File Reference

Go to the source code of this file.

Variables

static const unsigned long BLENDER_ICONS_WM_X11 []
 

Detailed Description

Icon image data for X11.

Definition in file GHOST_IconX11.h.

Variable Documentation

◆ BLENDER_ICONS_WM_X11

const unsigned long BLENDER_ICONS_WM_X11[]
static
import bpy
import textwrap
for resolution in [16, 32, 48, 64]:
ima = bpy.data.images.load('blender%d.png' % resolution)
w, h = ima.size
pixels = []
for y in range(h - 1, -1, -1):
for x in range(w):
p = ((y * w) + x) * 4
rgba = ima.pixels[p : p + 4]
rgba = rgba[2], rgba[1], rgba[0], rgba[3]
pixels.append(sum((int(p * 255) << (8 * i)) for i, p in enumerate(rgba)))
print("%d,%d," % (w, h))
text = ", ".join(["0x%x" % p for p in pixels])
print(textwrap.fill(text, width=120), end=",\n")
static T sum(const btAlignedObjectArray< T > &items)

See the python script above to regenerate the icons within blender

Note
Using 'unsigned' to avoid -Wnarrowing warning.

Definition at line 38 of file GHOST_IconX11.h.

Referenced by GHOST_WindowX11::GHOST_WindowX11().