Bitmap Class

Holds a bitmap image.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class Bitmap : IImage, IDisposable, 
	IImageBrushSource
Inheritance
Object    Bitmap
Derived
Implements
IImage, IImageBrushSource, IDisposable

Properties

AlphaFormat 
Dpi 
Format 
PixelSize 
Size Gets the size of the image, in device independent pixels.

Methods

CopyPixels(ILockedFramebuffer, AlphaFormat) Copies pixels to the target buffer and transcodes the pixel and alpha format if needed.
CopyPixels(PixelRect, IntPtr, Int32, Int32) 
CreateScaledBitmap(PixelSize, BitmapInterpolationMode) Creates a Bitmap scaled to a specified size from the current bitmap.
DecodeToHeight(Stream, Int32, BitmapInterpolationMode) Loads a Bitmap from a stream and decodes at the desired height. Aspect ratio is maintained. This is more efficient than loading and then resizing.
DecodeToWidth(Stream, Int32, BitmapInterpolationMode) Loads a Bitmap from a stream and decodes at the desired width. Aspect ratio is maintained. This is more efficient than loading and then resizing.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Save(Stream, NullableInt32) Saves the bitmap to a stream.
Save(String, NullableInt32) Saves the bitmap to a file.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also