public bool DrawImage(GraphicsContext dc, int index, Rect frame)
        {
            const int CLR_NONE = unchecked ((int)0xFFFFFFFF);

            return(NativeMethods.ImageList_DrawEx(Handle, index, dc.Handle, frame.left, frame.top, frame.Width, frame.Height, CLR_NONE, CLR_NONE, 0U));
        }
 public static Region CreateFromGraphicsContextPath(GraphicsContext context)
 {
     return(new Region(NativeMethods.PathToRegion(context.Handle)));
 }
 public bool DrawImage(GraphicsContext dc, int index, Point location)
 {
     return(NativeMethods.ImageList_Draw(Handle, index, dc.Handle, location.x, location.y, 0U));
 }