Class MpfData
A JPEG file's Multi-Picture Format index (CIPA DC-007): the images the file holds after its primary image, such as large previews, stereo views or an HDR gain map. LoadAll(Stream, EgamiContext?, ReaderOptions?) loads each JPEG image it lists.
public sealed record MpfData : IEquatable<MpfData>
- Inheritance
-
MpfData
- Implements
- Inherited Members
Examples
// A JPEG's Multi-Picture index lists the images stored after the primary: previews, stereo views, a gain map.
using Raster photo = Raster.Load("ultrahdr.jpg");
MpfData? index = ((JpegDetails)photo.Metadata.FormatDetails!).MultiPicture;
foreach (MpfImage image in index?.Images ?? [])
{
Console.WriteLine($"{image.Type}: {image.Length:N0} bytes at {image.Offset:N0}");
}
// LoadAll gives every JPEG image the index lists, the primary first; a plain JPEG gives one.
using RasterList all = Raster.LoadAll("ultrahdr.jpg");
Properties
Images
Gets the images, in the index's order; the first is the primary image.
public IReadOnlyList<MpfImage> Images { get; init; }
Property Value
Version
Gets the MPF version, such as "0100".
public string Version { get; init; }