Search Results for

    Show / Hide Table of Contents

    Class PixelTransformInternalBase

    Provides a minimal base implementation of IPixelTransform, which simply passes calls through to the upstream source.

    Inheritance
    System.Object
    PixelTransformInternalBase
    ColorMatrixTransform
    FormatConversionTransform
    GaussianBlurTransform
    OrientationTransform
    PadTransform
    Implements
    IPixelTransform
    IPixelSource
    Namespace: PhotoSauce.MagicScaler.Transforms
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public abstract class PixelTransformInternalBase : Object, IPixelTransform, IPixelSource
    Remarks

    This class is intended for internal use only.

    Constructors

    PixelTransformInternalBase()

    Declaration
    protected PixelTransformInternalBase()

    Properties

    Format

    The binary representation of the pixel data. Must be one of the values from PixelFormats.

    Declaration
    public Guid Format { get; }
    Property Value
    Type Description
    System.Guid

    Height

    The height of the image in pixels

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32

    Width

    The width of the image in pixels

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CopyPixels(Rectangle, Int32, Span<Byte>)

    Copies the image pixels bounded by sourceArea to the provided buffer.

    Declaration
    public void CopyPixels(Rectangle sourceArea, int cbStride, Span<byte> buffer)
    Parameters
    Type Name Description
    System.Drawing.Rectangle sourceArea

    A System.Drawing.Rectangle that bounds the area of interest.

    System.Int32 cbStride

    The number of bytes between pixels in the same image column within the buffer.

    System.Span<System.Byte> buffer

    A target memory buffer that will receive the pixel data.

    Explicit Interface Implementations

    IPixelTransform.Init(IPixelSource)

    Called once, before any pixels are passed through the filter. The source defines the input to the filter.

    Declaration
    void IPixelTransform.Init(IPixelSource source)
    Parameters
    Type Name Description
    IPixelSource source

    The IPixelSource that provides input to the filter.

    Implements

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