Anonymous
Icon is an interface wrapper accessible as a property of the Document object that makes the working with icons possible.
// create a 48x48 image and fill it with red color
var icon = Document.Icon;
var formatID = icon.CreateFormatID(48, 48, 32);
icon.InsertImage(formatID);
var image = icon.GetImage(formatID);
DrawTool.SetColor1(1, 0, 0, 1);
DrawTool.RECTANGLE(image, 0, 0, 48, 48);
Find out how Vista icons differ from XP icons.
See how RealWorld Icon Editor handles Vista icons.