Search Results for

    Show / Hide Table of Contents

    Class ImageProcessor

    Class for processing images

    Inheritance
    object
    ImageProcessor
    Namespace: Terminaux.Images
    Assembly: Terminaux.Images.dll
    Syntax
    public static class ImageProcessor

    Methods

    | Edit this page View Source

    GetColorsFromImage()

    Gets the list of colors by the number of pixels from the default image that Terminaux provides (that is, the Aptivi branding)

    Declaration
    public static Color[,] GetColorsFromImage()
    Returns
    Type Description
    Color[,]

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    GetColorsFromImage(MagickImage)

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static Color[,] GetColorsFromImage(MagickImage image)
    Parameters
    Type Name Description
    MagickImage image

    Image data that ImageMagick can process

    Returns
    Type Description
    Color[,]

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    GetColorsFromImage(byte[])

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static Color[,] GetColorsFromImage(byte[] imageBytes)
    Parameters
    Type Name Description
    byte[] imageBytes

    Array of bytes that contains the image data that ImageMagick can process

    Returns
    Type Description
    Color[,]

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    GetColorsFromImage(Stream)

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static Color[,] GetColorsFromImage(Stream imageStream)
    Parameters
    Type Name Description
    Stream imageStream

    Stream that contains the image data that ImageMagick can process

    Returns
    Type Description
    Color[,]

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    GetColorsFromImage(string)

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static Color[,] GetColorsFromImage(string imagePath)
    Parameters
    Type Name Description
    string imagePath

    Path to the image that ImageMagick can process

    Returns
    Type Description
    Color[,]

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    OpenImage()

    Gets the list of colors by the number of pixels from the default image that Terminaux provides (that is, the Aptivi branding)

    Declaration
    public static MagickImage OpenImage()
    Returns
    Type Description
    MagickImage

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    OpenImage(byte[])

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static MagickImage OpenImage(byte[] imageBytes)
    Parameters
    Type Name Description
    byte[] imageBytes

    Array of bytes that contains the image data that ImageMagick can process

    Returns
    Type Description
    MagickImage

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    OpenImage(Stream)

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static MagickImage OpenImage(Stream imageStream)
    Parameters
    Type Name Description
    Stream imageStream

    Stream that contains the image data that ImageMagick can process

    Returns
    Type Description
    MagickImage

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    OpenImage(string)

    Gets the list of colors by the number of pixels from the image

    Declaration
    public static MagickImage OpenImage(string imagePath)
    Parameters
    Type Name Description
    string imagePath

    Path to the image that ImageMagick can process

    Returns
    Type Description
    MagickImage

    A list of Terminaux's Color instance translated from ImageMagick's ImageMagick.IPixel<TQuantumType> instance

    | Edit this page View Source

    RenderImage(MagickImage, int, int, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(MagickImage image, int width, int height, int left, int top, Color? background = null)
    Parameters
    Type Name Description
    MagickImage image

    Image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    int left

    Zero-based console left position to start writing the image to

    int top

    Zero-based console top position to start writing the image to

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(MagickImage, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(MagickImage image, int width, int height, Color? background = null)
    Parameters
    Type Name Description
    MagickImage image

    Image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(byte[], int, int, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(byte[] imageBytes, int width, int height, int left, int top, Color? background = null)
    Parameters
    Type Name Description
    byte[] imageBytes

    Array of bytes that contains the image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    int left

    Zero-based console left position to start writing the image to

    int top

    Zero-based console top position to start writing the image to

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(byte[], int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(byte[] imageBytes, int width, int height, Color? background = null)
    Parameters
    Type Name Description
    byte[] imageBytes

    Array of bytes that contains the image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(Stream, int, int, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(Stream imageStream, int width, int height, int left, int top, Color? background = null)
    Parameters
    Type Name Description
    Stream imageStream

    Stream that contains the image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    int left

    Zero-based console left position to start writing the image to

    int top

    Zero-based console top position to start writing the image to

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(Stream, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(Stream imageStream, int width, int height, Color? background = null)
    Parameters
    Type Name Description
    Stream imageStream

    Stream that contains the image data that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(int, int, int, int, Color?)

    Renders the placeholder image (that is, the Aptivi branding) to a string that you can print to the console

    Declaration
    public static string RenderImage(int width, int height, int left, int top, Color? background = null)
    Parameters
    Type Name Description
    int width

    Width of the resulting image

    int height

    Height of the resulting image

    int left

    Zero-based console left position to start writing the image to

    int top

    Zero-based console top position to start writing the image to

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(int, int, Color?)

    Renders the placeholder image (that is, the Aptivi branding) to a string that you can print to the console

    Declaration
    public static string RenderImage(int width, int height, Color? background = null)
    Parameters
    Type Name Description
    int width

    Width of the resulting image

    int height

    Height of the resulting image

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(string, int, int, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(string imagePath, int width, int height, int left, int top, Color? background = null)
    Parameters
    Type Name Description
    string imagePath

    Path to the image that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    int left

    Zero-based console left position to start writing the image to

    int top

    Zero-based console top position to start writing the image to

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    | Edit this page View Source

    RenderImage(string, int, int, Color?)

    Renders the image to a string that you can print to the console

    Declaration
    public static string RenderImage(string imagePath, int width, int height, Color? background = null)
    Parameters
    Type Name Description
    string imagePath

    Path to the image that ImageMagick can process

    int width

    Width of the resulting image

    int height

    Height of the resulting image

    Color background

    Specifies the background color, or null for default

    Returns
    Type Description
    string

    A string that contains the resulting pixels that you can print to the console using the WriteRaw(string, params object[]) function

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX