Dimensions¶
Namespace Nfty.Core.Model in assembly Nfty.Ticket.
Canvas size in pixels. Held by the CookBook and the single source of truth for the whole book: every variant image in every nested Recipe is validated against it, so a Set cannot contain two assets of different sizes.
Constructors¶
Dimensions(int, int)¶
Parameters
Width(int) - Width in pixels.Height(int) - Height in pixels.
Fields¶
MaxPixels¶
The most pixels a canvas may have, so allocating a raster for one cannot overflow an int or exhaust memory.
Properties¶
Height¶
Height in pixels.
Width¶
Width in pixels.