콘텐츠로 이동

IImage interface

이 콘텐츠는 아직 번역되지 않았습니다.

Abstract interface for image resources.

public interface IImage : IDisposable
name description
PixelHeight { get; } Gets the height of the image in pixels.
PixelWidth { get; } Gets the width of the image in pixels.
Size { get; } Gets the size of the image.
TrySetPostReleaseCallback(…) Asks the image to invoke callback once its backend GPU references have actually been released, not just when Dispose returns; returns true when the backend accepted the callback and false when the caller must run the equivalent cleanup itself after Dispose.

An image belongs to the factory that created it and is drawn only through that factory’s contexts; disposing it releases the backend resource.