コード例 #1
0
        public static Bitmap FromResource(IntPtr hinstance, string bitmapName)          //TODO: Untested
        {
            IntPtr bitmap;
            Status status = GDIPlus.GdipCreateBitmapFromResource(hinstance, bitmapName, out bitmap);

            GDIPlus.CheckStatus(status);
            return(new Bitmap(bitmap));
        }