SixelVisibility
Namespace: Hex1b.Surfaces
Assembly: Hex1b.dll
Tracks visibility information for a sixel during compositing.
public sealed class SixelVisibilityInheritance
Object → SixelVisibility
Constructors
SixelVisibility(TrackedObject<SixelData>, int, int, int)
Creates a new sixel visibility tracker.
Parameters:
public SixelVisibility(TrackedObject<SixelData> sixel, int anchorX, int anchorY, int layerIndex)Properties
AnchorPosition
Gets the anchor cell position (top-left of the sixel).
Returns: ValueTuple<Int32, Int32>
public (int X, int Y) AnchorPosition { get; }IsFragmented
Gets whether this sixel is fragmented (partially occluded, multiple visible regions).
Returns: Boolean
public bool IsFragmented { get; }IsFullyOccluded
Gets whether this sixel is fully occluded (not visible at all).
Returns: Boolean
public bool IsFullyOccluded { get; }IsFullyVisible
Gets whether this sixel is fully visible (no occlusion).
Returns: Boolean
public bool IsFullyVisible { get; }LayerIndex
Gets the layer index this sixel belongs to.
Returns: Int32
public int LayerIndex { get; }Sixel
Gets the original sixel data.
Returns: TrackedObject<SixelData>
public TrackedObject<SixelData> Sixel { get; }VisibleRegions
Gets the visible pixel regions after occlusion. Empty if fully occluded.
Returns: IReadOnlyList<PixelRect>
public IReadOnlyList<PixelRect> VisibleRegions { get; }Methods
ApplyOcclusion(Rect, CellMetrics)
Applies an occlusion rectangle in cell coordinates to this Sixel image, using the protocol cell metrics captured when the image was created.
Parameters:
occlusionCellRect(Rect): The occluding rectangle in cell coordinates.metrics(CellMetrics): Ignored. Sixel placement metrics are captured by .
[Obsolete("Cell metrics are captured by SixelData. Use ApplyOcclusion(Rect).")]
public void ApplyOcclusion(Rect occlusionCellRect, CellMetrics metrics)ApplyOcclusion(Rect)
Applies an occlusion rectangle in cell coordinates to this Sixel image, using the protocol cell metrics captured when the image was created.
Parameters:
occlusionCellRect(Rect): The occluding rectangle in cell coordinates.
public void ApplyOcclusion(Rect occlusionCellRect)GenerateFragments()
Generates fragments for the visible regions of this Sixel image using the protocol cell metrics captured when the image was created.
Returns: IReadOnlyList<SixelFragment>
List of fragments to render.
public IReadOnlyList<SixelFragment> GenerateFragments()GenerateFragments(CellMetrics)
Generates fragments for the visible regions of this Sixel image using the protocol cell metrics captured when the image was created.
Parameters:
metrics(CellMetrics): Ignored. Sixel placement metrics are captured by .
Returns: IReadOnlyList<SixelFragment>
List of fragments to render.
[Obsolete("Cell metrics are captured by SixelData. Use GenerateFragments().")]
public IReadOnlyList<SixelFragment> GenerateFragments(CellMetrics metrics)