Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ImageHelper Class

    Namespace: Stride.Graphics
    Assembly: Stride.dll
    System.Object → ImageHelper
    Derived from ImageHelper:

    public class ImageHelper
    Name Description
    Methods
    LoadFromMemory(IntPtr, Int32, Boolean, Nullable<GCHandle>)
    SaveFromMemory(PixelBuffer[], Int32, ImageDescription, Stream)
    | Improve this Doc View Source

    Methods


    LoadFromMemory(IntPtr, Int32, Boolean, Nullable<GCHandle>)

    public static Image LoadFromMemory(IntPtr pSource, int size, bool makeACopy, GCHandle? handle)
    Parameters
    Type Name Description
    System.IntPtr pSource
    System.Int32 size
    System.Boolean makeACopy
    System.Nullable<System.Runtime.InteropServices.GCHandle> handle
    Returns
    Type Description
    Image

    SaveFromMemory(PixelBuffer[], Int32, ImageDescription, Stream)

    public static void SaveFromMemory(PixelBuffer[] pixelBuffers, int count, ImageDescription description, Stream imageStream)
    Parameters
    Type Name Description
    PixelBuffer[] pixelBuffers
    System.Int32 count
    ImageDescription description
    System.IO.Stream imageStream

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation