Enum MpfImageType
What an image of a Multi-Picture Format file is, from its MP entry (CIPA DC-007, and the gain map type CIPA added later).
public enum MpfImageType
Fields
BaselinePrimary = 196608The primary image, which the file opens with.
Disparity = 131074A view of a stereo or multi-view disparity set.
GainMap = 327680A gain map, which turns the primary into an HDR image.
LargeThumbnail16K = 65541A large thumbnail of about 16K size.
LargeThumbnail4K = 65539A large thumbnail of about 4K size.
LargeThumbnail8K = 65540A large thumbnail of about 8K size.
LargeThumbnailFullHd = 65538A large thumbnail of about full HD size.
LargeThumbnailVga = 65537A large thumbnail of about VGA size.
MultiAngle = 131075A view of a multi-angle set.
OriginalPreservation = 262144An original kept beside an edited primary.
Panorama = 131073A frame of a panorama.
Undefined = 0No type given.
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");