Search Results for

    Show / Hide Table of Contents

    Class PadTransform

    Adds solid-colored padding pixels to an image.

    Inheritance
    System.Object
    PixelTransformInternalBase
    PadTransform
    Implements
    IPixelTransform
    IPixelSource
    Inherited Members
    PixelTransformInternalBase.CopyPixels(Rectangle, Int32, Span<Byte>)
    PixelTransformInternalBase.IPixelTransform.Init(IPixelSource)
    PixelTransformInternalBase.Format
    PixelTransformInternalBase.Width
    PixelTransformInternalBase.Height
    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.

    Implements

    IPixelTransform
    IPixelSource
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX