示例#1
0
 public static IWICBitmap CreateBitmap(this IWICImagingFactory imagingFactory, WICSize size, Guid pixelFormat, WICBitmapCreateCacheOption option)
 {
     return(imagingFactory.CreateBitmap(size.Width, size.Height, pixelFormat, option));
 }
示例#2
0
 public static void SetSize(this IWICBitmapFrameEncode bitmapFrameEncode, WICSize size)
 {
     bitmapFrameEncode.SetSize(size.Width, size.Height);
 }
示例#3
0
 public static IWICBitmap CreateBitmapFromMemory(this IWICImagingFactory imagingFactory, WICSize size, Guid pixelFormat, int cbStride, byte[] pbBuffer)
 {
     return(imagingFactory.CreateBitmapFromMemory(size.Width, size.Height, pixelFormat, cbStride, pbBuffer.Length, pbBuffer));
 }
 public static void Initialize(this IWICBitmapScaler bitmapScaler, IWICBitmapSource pISource, WICSize size, WICBitmapInterpolationMode mode)
 {
     bitmapScaler.Initialize(pISource, size.Width, size.Height, mode);
 }