|
| WicBitmapPadder (IWICBitmapSource s, int left, int top, int right, int bottom, byte[] bgcolor, WICRect crop) |
| Adds padding to a bitmap, optionally cropping it at the same time. More...
|
|
void | GetSize (out uint puiWidth, out uint puiHeight) |
|
void | GetPixelFormat (out Guid pPixelFormat) |
|
void | GetResolution (out double pDpiX, out double pDpiY) |
|
void | CopyPalette (IWICPalette pIPalette) |
|
void | CopyPixels (WICRect prc, uint destStride, uint destBufferSize, [Out][MarshalAs(UnmanagedType.LPArray, SizeParamIndex=2)] byte[] destBuffer) |
|
Definition at line 10 of file WicBitmapPadder.cs.
ImageResizer.Plugins.Wic.WicBitmapPadder.WicBitmapPadder |
( |
IWICBitmapSource |
s, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom, |
|
|
byte[] |
bgcolor, |
|
|
WICRect |
crop |
|
) |
| |
|
inline |
Adds padding to a bitmap, optionally cropping it at the same time.
- Parameters
-
s | |
left | |
top | |
right | |
bottom | |
bgcolor | |
crop | |
Definition at line 30 of file WicBitmapPadder.cs.
36 this.bgcolor = bgcolor;
40 s.GetPixelFormat(out pf);
41 if (bgcolor.Length != ConversionUtils.BytesPerPixel(pf))
throw new ArgumentException(
"bgcolor length must match the format bytes per pixel");
The documentation for this class was generated from the following file: