Skip to main content

Class VelloBitmap

Namespace: VelloSharp.WinForms
Assembly: VelloSharp.WinForms.Core.dll

public sealed class VelloBitmap : IDisposable

Inheritance​

object ← VelloBitmap

Implements​

IDisposable

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties​

AlphaMode​

public ImageAlphaMode AlphaMode { get; }

Property Value​

ImageAlphaMode

Format​

public RenderFormat Format { get; }

Property Value​

RenderFormat

Height​

public int Height { get; }

Property Value​

int

Image​

public Image Image { get; }

Property Value​

Image

Width​

public int Width { get; }

Property Value​

int

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

FromBitmap(Bitmap)​

public static VelloBitmap FromBitmap(Bitmap bitmap)

Parameters​

bitmap Bitmap

Returns​

VelloBitmap

FromPixels(ReadOnlySpan<byte>, int, int, RenderFormat, ImageAlphaMode, int)​

public static VelloBitmap FromPixels(ReadOnlySpan<byte> pixels, int width, int height, RenderFormat format = RenderFormat.Bgra8, ImageAlphaMode alphaMode = ImageAlphaMode.Premultiplied, int stride = 0)

Parameters​

pixels ReadOnlySpan<byte>

width int

height int

format RenderFormat

alphaMode ImageAlphaMode

stride int

Returns​

VelloBitmap

Wrap(Image, int, int, RenderFormat, ImageAlphaMode)​

public static VelloBitmap Wrap(Image image, int width, int height, RenderFormat format, ImageAlphaMode alphaMode)

Parameters​

image Image

width int

height int

format RenderFormat

alphaMode ImageAlphaMode

Returns​

VelloBitmap

Wrap(Image)​

public static VelloBitmap Wrap(Image image)

Parameters​

image Image

Returns​

VelloBitmap