MaxImagePixels Property

Definition

Namespace Broadside
Assembly Broadside.dll

Gets or sets the most pixels (width x height) one image may have; a larger image is not decoded, with a diagnostic. Default 2^28. The bytes of its samples are also limited by MaxDecodedStreamLength.

public long MaxImagePixels { get; set; }

Returns

Remarks

ISO 32000-2 §8.9.5.1, Table 87: Width and Height come from the file, so a few bytes can claim an image of any size; the limit is checked before any memory is taken.