RenderTargetBitmap Class

A bitmap that holds the rendering of a Visual.

Definition

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

Properties

AlphaFormat
(Inherited from Bitmap)
Dpi
(Inherited from Bitmap)
Format
(Inherited from Bitmap)
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)
(Inherited from Bitmap)
CreateDrawingContext Creates a DrawingContext for drawing to the RenderTargetBitmap. Clears the current image data to transparent.
CreateDrawingContext(Boolean) Creates a DrawingContext for drawing to the RenderTargetBitmap.
CreateScaledBitmap(PixelSize, BitmapInterpolationMode) Creates a Bitmap scaled to a specified size from the current bitmap.
(Inherited from Bitmap)
DisposeReleases all resources used by the RenderTargetBitmap
(Overrides BitmapDispose)
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)
Render(Visual) Renders a visual to the RenderTargetBitmap.
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