콘텐츠로 이동

ScratchSurfaceKey structure

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

Identifies interchangeable offscreen render surfaces in the scratch pool. Two surfaces with the same key can be swapped for one another because the renter repaints the content it needs.

public struct ScratchSurfaceKey : IEquatable<ScratchSurfaceKey>
parameter description
PixelWidth Allocated surface width in pixels.
PixelHeight Allocated surface height in pixels.
DpiScale DPI scale the surface was created with.
HasAlpha Whether the surface carries a per-pixel alpha channel.
ResourceClass Opaque compatibility class used to prevent cross-purpose reuse.
name description
ScratchSurfaceKey(…) Identifies interchangeable offscreen render surfaces in the scratch pool. Two surfaces with the same key can be swapped for one another because the renter repaints the content it needs.
DpiScale { get; set; } DPI scale the surface was created with.
HasAlpha { get; set; } Whether the surface carries a per-pixel alpha channel.
PixelHeight { get; set; } Allocated surface height in pixels.
PixelWidth { get; set; } Allocated surface width in pixels.
ResourceClass { get; set; } Opaque compatibility class used to prevent cross-purpose reuse.