Пример #1
0
        /// <summary>
        /// Creates a Bitmap from a WIC bitmap.
        /// </summary>
        /// <param name="deviceContext">The render target.</param>
        /// <param name="wicBitmap">The WIC bitmap.</param>
        /// <param name="bitmapProperties">The bitmap properties.</param>
        /// <returns></returns>
        /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out] ID2D1Bitmap1** bitmap)</unmanaged>
        public static Bitmap1 FromWicBitmap(DeviceContext deviceContext, WIC.BitmapSource wicBitmap, SharpDX.Direct2D1.BitmapProperties1 bitmapProperties)
        {
            Bitmap1 bitmap;

            deviceContext.CreateBitmapFromWicBitmap(wicBitmap, bitmapProperties, out bitmap);
            return(bitmap);
        }
Пример #2
0
        /// <summary>
        /// Creates a Bitmap from a WIC bitmap.
        /// </summary>
        /// <param name="deviceContext">The render target.</param>
        /// <param name="wicBitmapSource">A reference to a <see cref="SharpDX.WIC.BitmapSource"/> WIC bitmap.</param>
        /// <returns></returns>
        /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out] ID2D1Bitmap1** bitmap)</unmanaged>
        public static Bitmap1 FromWicBitmap(DeviceContext deviceContext, WIC.BitmapSource wicBitmapSource)
        {
            Bitmap1 bitmap;

            deviceContext.CreateBitmapFromWicBitmap(wicBitmapSource, null, out bitmap);
            return(bitmap);
        }
Пример #3
0
 /// <summary>
 /// Creates a Bitmap from a wic bitmap.
 /// </summary>
 /// <param name="deviceContext">The render target.</param>
 /// <param name="wicBitmap">The wic bitmap.</param>
 /// <param name="bitmapProperties">The bitmap properties.</param>
 /// <returns></returns>
 /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out] ID2D1Bitmap1** bitmap)</unmanaged>	
 public static Bitmap FromWicBitmap(DeviceContext deviceContext, WIC.BitmapSource wicBitmap, SharpDX.Direct2D1.BitmapProperties1 bitmapProperties)
 {
     Bitmap1 bitmap;
     deviceContext.CreateBitmapFromWicBitmap(wicBitmap, bitmapProperties, out bitmap);
     return bitmap;
 }
Пример #4
0
 /// <summary>
 /// Creates a Bitmap from a wic bitmap.
 /// </summary>
 /// <param name="deviceContext">The render target.</param>
 /// <param name="wicBitmapSource">A reference to a <see cref="SharpDX.WIC.BitmapSource"/> wic bitmap.</param>
 /// <returns></returns>
 /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out] ID2D1Bitmap1** bitmap)</unmanaged>	
 public static Bitmap1 FromWicBitmap(DeviceContext deviceContext, WIC.BitmapSource wicBitmapSource)
 {
     Bitmap1 bitmap;
     deviceContext.CreateBitmapFromWicBitmap(wicBitmapSource, null, out bitmap);
     return bitmap;
 }