コード例 #1
0
ファイル: D2DLib.cs プロジェクト: patmosxx-v2/d2dlib
        public D2DBitmap CreateBitmapFromMemory(UINT width, UINT height, UINT stride, IntPtr buffer, UINT offset, UINT length)
        {
            HANDLE d2dbmp = D2D.CreateBitmapFromMemory(this.Handle, width, height, stride, buffer, offset, length);

            return(d2dbmp == HANDLE.Zero ? null : new D2DBitmap(d2dbmp));
        }