Back to FabImage Library website
You are here: Start » Function Reference » Image » Image IO » LoadImageFormat
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Loads a single image format from a file without loading all image data.
Syntax
C++
C#
void fil::LoadImageFormat ( const ftl::File& inFile, bool inLoadAlphaChannel, fil::ImageFormat& outImageFormat )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inFile | const File& | Path to a file | |
![]() |
inLoadAlphaChannel | bool | ||
![]() |
outImageFormat | ImageFormat& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Image is damaged or it is not a BMP, PNG, TIF or JPG file in LoadImageFormat. File: File name Unable to open an image. Image header format is unrecognized. Image format is unknown or image is damaged.
Load image supports only BMP, PNG, JPG and TIFF formats. |