VisioForge (c) 2025

Search Results for

    Class WPFImageHelper

    Image helper for WPF.

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

    Methods

    ToBitmap(BitmapSource)

    Converts Bitmap to WPF BitmapSource.

    Declaration
    public static Bitmap ToBitmap(this BitmapSource bitmapSource)
    Parameters
    Type Name Description
    BitmapSource bitmapSource

    The bitmap source.

    Returns
    Type Description
    Bitmap

    Bitmap.

    ToBitmapSource(Bitmap)

    Converts WinForms Bitmap to WPF BitmapSource.

    Declaration
    public static BitmapSource ToBitmapSource(this Bitmap bitmap)
    Parameters
    Type Name Description
    Bitmap bitmap

    Source frameBitmap.

    Returns
    Type Description
    BitmapSource

    Returns WPF BitmapSource.