metadata_read library

Functions

extractSvsImage(SvsFile svs, String type) Future<Uint8List?>
Extracts the raw image bytes for an associated image (e.g. 'thumbnail', 'label', or 'macro') from an SVS file.
extractSvsImageAsImage(SvsFile svs, String type, {bool applyColorScheme = true, bool applyDisplayColor = true, int? displayColor}) Future<Image?>
Extracts an associated image (e.g. 'thumbnail', 'label', or 'macro') from an SVS file and returns it as a decoded img.Image.
extractSvsImageAsJpeg(SvsFile svs, String type, {int quality = 90, bool applyColorScheme = true, bool applyDisplayColor = true, int? displayColor}) Future<Uint8List?>
Extracts an associated image (e.g. 'thumbnail', 'label', or 'macro') from an SVS file and returns it as encoded JPEG bytes.
extractSvsTile(SvsFile svs, int layerIndex, int tileX, int tileY, {CancellationToken? cancelToken}) Future<Uint8List?>
Extracts the raw bytes of a specific tile from a resolution layer in the SVS file.
extractSvsTileAsImage(SvsFile svs, int layerIndex, int tileX, int tileY, {bool applyColorScheme = true, bool applyDisplayColor = true, int? displayColor, CancellationToken? cancelToken}) Future<Image?>
Extracts a specific tile from a resolution layer in the SVS file and returns it as a decoded img.Image.
openSvsFile(String path, {int maxConcurrency = 4}) Future<SvsFile?>
Opens an SVS file at the specified path and reads its TIFF/BigTIFF header.
parseDisplayColor(dynamic value) int?
Parses an integer display color from a dynamic value, string (decimal, hex with # or 0x), or int.
readFullSvsMetadata(SvsFile svs) Future<SvsFullMetadata?>
Reads all metadata from the SVS file, including all pyramid levels and associated images.
readSvsMetadata(SvsFile svs) Future<SvsMetadata?>
Reads basic metadata of the primary image from the SVS file.