Skip to content

TilemapImageLayer Class

Definition

Namespace: Brine2D.Tilemap

Represents an image layer from a Tiled map — a full-image background or foreground layer that is not composed of tiles.

C#
public class TilemapImageLayer

Inheritance System.Object → TilemapImageLayer

Remarks

Image layers are not rendered automatically by TilemapRenderer. The intended usage is to read ImagePath and load it manually as a sprite or background, applying the layer's Opacity, TintColor, and parallax properties yourself.

Properties
ImagePath Absolute path to the image file referenced by this layer.
Name Layer name as set in Tiled.
OffsetX Pixel offset applied to the layer horizontally \(Tiled offsetx\).
OffsetY Pixel offset applied to the layer vertically \(Tiled offsety\).
Opacity Layer opacity \(0\.0 = invisible, 1\.0 = fully visible\).
ParallaxX Parallax scroll multiplier on the X axis \(Tiled parallaxx\). Default is 1.0.
ParallaxY Parallax scroll multiplier on the Y axis \(Tiled parallaxy\). Default is 1.0.
Properties Custom properties defined on this layer in Tiled.
TintColor Tint color multiplied with the image when rendering \(Tiled tintcolor\). Defaults to White \(no tint\).
Visible Whether this layer is visible.
ZOrder Rendering order relative to other layers \(lower renders first/behind\). Shares the same counter as tile layers so document order is preserved.