Search Results for

    Class ImageProcessor

    Class for processing images

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


    Methods

    GetColorsFromImage(MagickImage, int, int, Color?)

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

    Returns
    Color[,]

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

    Declaration
    public static Color[,] GetColorsFromImage(MagickImage image, int width = 0, int height = 0, Color? background = null)
    Parameters
    Name Type Description
    image MagickImage

    Image data that ImageMagick can process

    width int

    Target width. Set to 0 to prevent resize.

    height int

    Target height. Set to 0 to prevent resize.

    background Color

    Specifies the background color, or null for default

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

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

    Returns
    Color[,]

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

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

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

    width int

    Target width. Set to 0 to prevent resize.

    height int

    Target height. Set to 0 to prevent resize.

    background Color

    Specifies the background color, or null for default

    GetColorsFromImage(Stream, int, int, Color?)

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

    Returns
    Color[,]

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

    Declaration
    public static Color[,] GetColorsFromImage(Stream imageStream, int width = 0, int height = 0, Color? background = null)
    Parameters
    Name Type Description
    imageStream Stream

    Stream that contains the image data that ImageMagick can process

    width int

    Target width. Set to 0 to prevent resize.

    height int

    Target height. Set to 0 to prevent resize.

    background Color

    Specifies the background color, or null for default

    GetColorsFromImage(int, int, Color?)

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

    Returns
    Color[,]

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

    Declaration
    public static Color[,] GetColorsFromImage(int width = 0, int height = 0, Color? background = null)
    Parameters
    Name Type Description
    width int
    height int
    background Color

    GetColorsFromImage(string, int, int, Color?)

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

    Returns
    Color[,]

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

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

    Path to the image that ImageMagick can process

    width int

    Target width. Set to 0 to prevent resize.

    height int

    Target height. Set to 0 to prevent resize.

    background Color

    Specifies the background color, or null for default

    OpenImage()

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

    Returns
    MagickImage

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

    Declaration
    public static MagickImage OpenImage()

    OpenImage(byte[])

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

    Returns
    MagickImage

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

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

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

    OpenImage(Stream)

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

    Returns
    MagickImage

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

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

    Stream that contains the image data that ImageMagick can process

    OpenImage(string)

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

    Returns
    MagickImage

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

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

    Path to the image that ImageMagick can process

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

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

    Returns
    string

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

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

    Image data that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Image data that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    left int

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

    top int

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

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

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

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

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

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    left int

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

    top int

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

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Stream that contains the image data that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Stream that contains the image data that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    left int

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

    top int

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

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

    RenderImage(int, int, Color?, bool)

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

    Returns
    string

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

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

    Width of the resulting image

    height int

    Height of the resulting image

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Width of the resulting image

    height int

    Height of the resulting image

    left int

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

    top int

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

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Path to the image that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

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

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

    Returns
    string

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

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

    Path to the image that ImageMagick can process

    width int

    Width of the resulting image

    height int

    Height of the resulting image

    left int

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

    top int

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

    background Color

    Specifies the background color, or null for default

    resize bool

    Whether to perform a resize or not

    Show / Hide Table of Contents

    Table of contents



      About

      Copyright © 2014-2026 Aptivi

      Find us

    •  
    •  
    •  
    •  
    •  
    •  
    • Social media

    •  
    •  
    •  
    •