Class PadTransform
Adds solid-colored padding pixels to an image.
Inherited Members
Namespace: PhotoSauce.MagicScaler.Transforms
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class PadTransform : PixelTransformInternalBase, IPixelTransform, IPixelSource
Constructors
PadTransform(Color, Int32, Int32, Int32, Int32)
Constructs a new PadTransform using the specified System.Drawing.Color and sizes.
Declaration
public PadTransform(Color color, int top, int right, int bottom, int left)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | The System.Drawing.Color of the padding pixels. |
System.Int32 | top | The number of pixels to add to the image top. |
System.Int32 | right | The number of pixels to add to the image right. |
System.Int32 | bottom | The number of pixels to add to the image bottom. |
System.Int32 | left | The number of pixels to add to the image left. |