SpriteSheetLayout¶
Namespace Nfty.Core.Publish in assembly Nfty.Core.
How a sheet is laid out: a grid of cells, in the Set's own canvas size.
Remarks¶
The cell is the CANVAS, never a size the caller picks. Every asset in a Set is the canvas size by construction — the CookBook fixes it and Validator checks every variant against it — so a cell that disagreed would mean either scaling the art or cropping it, and this project resamples nothing anywhere. A sheet is a stitch, not a render.
Constructors¶
SpriteSheetLayout(int, int, int, int)¶
Parameters
Columns(int) - Cells across.Rows(int) - Cells down.CellWidth(int) - One cell's width — the Set's canvas width.CellHeight(int) - One cell's height — the Set's canvas height.
Remarks
The cell is the CANVAS, never a size the caller picks. Every asset in a Set is the canvas size by construction — the CookBook fixes it and Validator checks every variant against it — so a cell that disagreed would mean either scaling the art or cropping it, and this project resamples nothing anywhere. A sheet is a stitch, not a render.
Properties¶
Capacity¶
How many assets the grid holds.
CellHeight¶
One cell's height — the Set's canvas height.
CellWidth¶
One cell's width — the Set's canvas width.
Columns¶
Cells across.
Height¶
The finished sheet's height in pixels.
Pixels¶
The sheet's pixel count, which is what the size limit is actually about.
Rows¶
Cells down.
Width¶
The finished sheet's width in pixels.
Methods¶
SizeText()¶
The dimensions as a person reads them: 2048 x 2048.
Returns. The size as text, invariant like every other figure this product prints.