Class VelloBitmap
Namespace: VelloSharp.WinForms
Assembly: VelloSharp.WinForms.Core.dll
public sealed class VelloBitmap : IDisposable
Inheritance
Implements
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
Image
public Image Image { get; }
Property Value
Image
Width
public int Width { get; }
Property Value
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
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
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
Wrap(Image)
public static VelloBitmap Wrap(Image image)
Parameters
image
Image