示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageSourceFromWic"/>.
 /// </summary>
 public ImageSourceFromWic(DeviceContext2 context2, WIC.BitmapSource wicBitmapSource, ImageSourceLoadingOptions loadingOptions, AlphaMode alphaMode)
     : this(IntPtr.Zero)
 {
     context2.CreateImageSourceFromWic(wicBitmapSource, loadingOptions, alphaMode, this);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageSourceFromWic"/>.
 /// </summary>
 public ImageSourceFromWic(DeviceContext2 context2, WIC.BitmapSource wicBitmapSource, ImageSourceLoadingOptions loadingOptions, AlphaMode alphaMode)
     : this(IntPtr.Zero)
 {
     context2.CreateImageSourceFromWic(wicBitmapSource, loadingOptions, alphaMode, this);
 }