Skip to main content

ImportImage(ICompositionImportableSharedGpuContextImage) Method

Asynchronously imports a texture. The returned object is immediately usable. If import operation fails, the caller is responsible for destroying the handle

Definition​

Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)

ICompositionImportedGpuImage ImportImage(
ICompositionImportableSharedGpuContextImage image
)

Parameters​

  ICompositionImportableSharedGpuContextImage
An image that belongs to the same GPU context or the same GPU context sharing group as one used by compositor

Return Value​

ICompositionImportedGpuImage

See Also​

Reference​

ICompositionGpuInterop Interface
ImportImage Overload
Avalonia.Rendering.Composition Namespace