Gtk.IconTheme.LoadIcon Method
Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf.

Syntax

public Gdk.Pixbuf LoadIcon (string icon_name, int size, IconLookupFlags flags)

Parameters

icon_name
a string, the name of the icon to lookup
size
a int, the desired icon size. The resulting icon may not be exactly this size; see IconInfo.LoadIcon().
flags
a int, flags modifying the behavior of the icon lookup

Returns

a Gdk.Pixbuf the rendered icon or null if the icon is not found.

Remarks

This is a convenience function; if more details about the icon are needed, use IconTheme.LookupIcon() followed by IconInfo.LoadIcon().

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Since: Gtk# 2.4