public static IWICBitmap CreateBitmap(this IWICImagingFactory imagingFactory, WICSize size, Guid pixelFormat, WICBitmapCreateCacheOption option) { return(imagingFactory.CreateBitmap(size.Width, size.Height, pixelFormat, option)); }
public static void SetSize(this IWICBitmapFrameEncode bitmapFrameEncode, WICSize size) { bitmapFrameEncode.SetSize(size.Width, size.Height); }
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); }