Search Results for

    Show / Hide Table of Contents

    Interface IPixelSource

    Provides a mechanism for accessing raw pixel data from an image.

    Namespace: PhotoSauce.MagicScaler
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public interface IPixelSource

    Properties

    Format

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

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

    Height

    The height of the image in pixels

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

    Width

    The width of the image in pixels

    Declaration
    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
    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.

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