Ejemplo n.º 1
0
        public D2DBitmap LoadBitmap(byte[] buffer, UINT offset, UINT length)
        {
            var bitmapHandle = D2D.CreateBitmapFromBytes(this.Handle, buffer, offset, length);

            return((bitmapHandle != HWND.Zero) ? new D2DBitmap(bitmapHandle) : null);
        }