Skip to content

MTY_GetProgramIcon

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get an application's program icon as an RGBA image.

void *MTY_GetProgramIcon(
    const char * path,
    uint32_t *   width,
    uint32_t *   height
);

Parameters

path (const char *)

Path to the application binary.

width (uint32_t *)

Set to the width of the returned buffer.

height (uint32_t *)

Set to the height of the returned buffer.

Return value

void *

The returned buffer is RGBA 8-bits per channel.

The returned buffer must be destroyed with MTY_Free.

Platform support

Windows  

See also

Module: Image

Clone this wiki locally