Skip to main content

RenderTargetBitmap Class

A bitmap that holds the rendering of a Visual.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class RenderTargetBitmap : Bitmap
View Source
InheritanceObjectBitmap → RenderTargetBitmap

Constructors

RenderTargetBitmap(PixelSize)Initializes a new instance of the RenderTargetBitmap class.
RenderTargetBitmap(PixelSize, Vector)Initializes a new instance of the RenderTargetBitmap class.

Properties

AlphaFormat
(Inherited from Bitmap)
Dpi
(Inherited from Bitmap)
Format
(Inherited from Bitmap)
PixelSize
(Inherited from Bitmap)
SizeGets 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)
Dispose()Releases all resources used by the RenderTargetBitmap
(Overrides Bitmap.Dispose())
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
Render(Visual)Renders a visual to the RenderTargetBitmap.
Save(Stream, Nullable(Int32))Saves the bitmap to a stream.
(Inherited from Bitmap)
Save(String, Nullable(Int32))Saves the bitmap to a file.
(Inherited from Bitmap)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Media.Imaging Namespace