WriteableBitmap Class

Holds a writeable bitmap image.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class WriteableBitmap : Bitmap
Inheritance
Object    Bitmap    WriteableBitmap

Properties

AlphaFormat
(Inherited from Bitmap)
Dpi
(Inherited from Bitmap)
Format
(Overrides BitmapFormat)
PixelSize
(Inherited from Bitmap)
Size Gets the size of the image, in device independent pixels.
(Inherited from Bitmap)

Methods

CopyPixels(ILockedFramebuffer, AlphaFormat) Copies pixels to the target buffer and transcodes the pixel and alpha format if needed.
(Inherited from Bitmap)
CopyPixels(PixelRect, IntPtr, Int32, Int32)
(Overrides BitmapCopyPixels(PixelRect, IntPtr, Int32, Int32))
CreateScaledBitmap(PixelSize, BitmapInterpolationMode) Creates a Bitmap scaled to a specified size from the current bitmap.
(Inherited from Bitmap)
Decode(Stream) 
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 WriteableBitmap 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.
(Inherited from Bitmap)
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)
Lock 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Save(Stream, NullableInt32) Saves the bitmap to a stream.
(Inherited from Bitmap)
Save(String, NullableInt32) Saves the bitmap to a file.
(Inherited from Bitmap)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also