VisioForge (c) 2025

Search Results for

    Class ColorspaceConverter

    Inheritance
    object
    ColorspaceConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.Helpers
    Assembly: VisioForge.Core.dll
    Syntax
    public static class ColorspaceConverter

    Methods

    ARGBToBGRA(nint, int, nint, int, int, int)

    ARGB to BGRA.

    Declaration
    public static void ARGBToBGRA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr
    int inputStride
    nint outputPtr
    int outputStride
    int width
    int height

    ARGBToRGB(nint, int, nint, int, int, int)

    ARGB to RGB.

    Declaration
    public static void ARGBToRGB(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    BGR24ToBGRA(nint, nint, int, int, byte)

    Converts BGR24 to BGRA.

    Declaration
    public static void BGR24ToBGRA(nint srcPixels, nint dstPixels, int width, int height, byte alpha)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    byte alpha

    The alpha.

    BGRAToARGB(nint, int, nint, int, int, int)

    BGRA to ARGB.

    Declaration
    public static void BGRAToARGB(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr
    int inputStride
    nint outputPtr
    int outputStride
    int width
    int height

    BGRToBGRA(nint, int, nint, int, int, int)

    BGR to BGRA.

    Declaration
    public static void BGRToBGRA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    BGRToRGBA(nint, int, nint, int, int, int)

    BGR to RGBA.

    Declaration
    public static void BGRToRGBA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    NV12ToRGBSlow(nint, int, int, int, nint, int)

    Converts NV12 to RGB (slow).

    Declaration
    public static void NV12ToRGBSlow(nint nv12Data, int stride, int width, int height, nint rgbData, int rgbStride)
    Parameters
    Type Name Description
    nint nv12Data

    The NV12 data.

    int stride

    The stride.

    int width

    The width.

    int height

    The height.

    nint rgbData

    The RGB data.

    int rgbStride

    The RGB stride.

    RGB24ToBGR24(nint, nint, int, int, int)

    Converts RGB24 to BGR24.

    Declaration
    public static void RGB24ToBGR24(nint srcPixels, nint dstPixels, int width, int height, int stride)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    int stride

    The stride.

    RGB24ToRGB32(nint, nint, int, int)

    Converts RGB24 to RGB32.

    Declaration
    public static void RGB24ToRGB32(nint srcPixels, nint dstPixels, int width, int height)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    RGB24ToRGBA(nint, nint, int, int, byte)

    Converts RGB24 to RGBA.

    Declaration
    public static void RGB24ToRGBA(nint srcPixels, nint dstPixels, int width, int height, byte alpha)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    byte alpha

    The alpha.

    RGB24ToUYVY_HDYC(nint, nint, int, int, int, int)

    Converts RGB24 to UYVY (HDYC).

    Declaration
    public static void RGB24ToUYVY_HDYC(nint pSource, nint pDest, int width, int height, int srcStride, int destStride)
    Parameters
    Type Name Description
    nint pSource

    The p source.

    nint pDest

    The p destination.

    int width

    The width.

    int height

    The height.

    int srcStride

    The source stride.

    int destStride

    The destination stride.

    RGB24ToYUY2(nint, nint, int, int, int, int)

    Converts RGB24 to YUY2.

    Declaration
    public static void RGB24ToYUY2(nint srcPixels, nint dstPixels, int width, int height, int srcStride, int dstStride)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    int srcStride

    The source stride.

    int dstStride

    The DST stride.

    RGB24ToYV12(nint, nint, int, int, int)

    Converts RGB24 to YV12.

    Declaration
    public static void RGB24ToYV12(nint srcPixels, nint dstPixels, int width, int height, int srcStride)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    int srcStride

    The source stride.

    RGB32ToRGB24(nint, nint, int, int)

    Converts RGB32 to RGB24.

    Declaration
    public static void RGB32ToRGB24(nint srcPixels, nint dstPixels, int width, int height)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    RGB32ToUYVY_HDYC(nint, nint, int, int, int, int)

    Converts RGB32 to UYVY (HDYC).

    Declaration
    public static void RGB32ToUYVY_HDYC(nint pSource, nint pDest, int width, int height, int srcStride, int destStride)
    Parameters
    Type Name Description
    nint pSource

    The p source.

    nint pDest

    The p destination.

    int width

    The width.

    int height

    The height.

    int srcStride

    The source stride.

    int destStride

    The destination stride.

    RGB32ToYUY2(nint, nint, int, int, int, int)

    Converts RGB32 to YUY2.

    Declaration
    public static void RGB32ToYUY2(nint pSource, nint pDest, int width, int height, int srcStride, int destStride)
    Parameters
    Type Name Description
    nint pSource

    The source.

    nint pDest

    The destination.

    int width

    The width.

    int height

    The height.

    int srcStride

    The source stride.

    int destStride

    The destination stride.

    RGBAToARGB(nint, int, nint, int, int, int)

    RGBA to ARGB.

    Declaration
    public static void RGBAToARGB(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr
    int inputStride
    nint outputPtr
    int outputStride
    int width
    int height

    RGBAToBGRA(nint, int, nint, int, int, int)

    RGBA to BGRA.

    Declaration
    public static void RGBAToBGRA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr
    int inputStride
    nint outputPtr
    int outputStride
    int width
    int height

    RGBAToCairo32(byte[], double)

    RGBA array to Cairo32 array.

    Declaration
    public static byte[] RGBAToCairo32(byte[] data, double alpha)
    Parameters
    Type Name Description
    byte[] data

    The data.

    double alpha

    The alpha.

    Returns
    Type Description
    byte[]

    System.Byte[].

    RGBAToCairo32Ptr(byte[], double)

    RGBA to Cairo32.

    Declaration
    public static nint RGBAToCairo32Ptr(byte[] data, double alpha)
    Parameters
    Type Name Description
    byte[] data

    The data.

    double alpha

    The alpha.

    Returns
    Type Description
    nint

    IntPtr.

    RGBToARGB(nint, int, nint, int, int, int)

    RGB to ARGB.

    Declaration
    public static void RGBToARGB(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    RGBToBGRA(nint, int, nint, int, int, int)

    RGB to BGRA.

    Declaration
    public static void RGBToBGRA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    RGBToRGBA(byte[], nint, int, int, int)

    RGB to RGBA.

    Declaration
    public static void RGBToRGBA(byte[] inputData, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    byte[] inputData
    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    RGBToRGBA(nint, int, nint, int, int, int)

    RGB to RGBA.

    Declaration
    public static void RGBToRGBA(nint inputPtr, int inputStride, nint outputPtr, int outputStride, int width, int height)
    Parameters
    Type Name Description
    nint inputPtr

    The input.

    int inputStride

    The input stride.

    nint outputPtr

    The output.

    int outputStride

    The output stride.

    int width

    The width.

    int height

    The height.

    YUY2ToRGB24(nint, nint, int, int)

    Converts YUY2 to RGB24.

    Declaration
    public static void YUY2ToRGB24(nint srcPixels, nint dstPixels, int width, int height)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.

    YV12ToRGB24(nint, nint, int, int)

    Converts YV12 to RGB24.

    Declaration
    public static void YV12ToRGB24(nint srcPixels, nint dstPixels, int width, int height)
    Parameters
    Type Name Description
    nint srcPixels

    The source data.

    nint dstPixels

    The destination data.

    int width

    The width.

    int height

    The height.