reckfellENGINE

ImageFormatLoaderExtension

Base class for creating ImageFormatLoader extensions (adding support for extra image formats).

On this page
class ImageFormatLoaderExtensionReckfellSharpInherits ImageFormatLoader

Base class for creating ImageFormatLoader extensions (adding support for extra image formats).

The engine supports multiple image formats out of the box (PNG, SVG, JPEG, WebP to name a few), but you can choose to implement support for additional image formats by extending this class. Be sure to respect the documented return types and values. You should create an instance of it, and call ImageFormatLoaderExtension.AddFormatLoader to register that loader during the initialization phase.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

ImageFormatLoaderExtensionConstructor
# ImageFormatLoaderExtension
C#
public ImageFormatLoaderExtension();

Methods4

AddFormatLoadervoid
# AddFormatLoader
C#
public void AddFormatLoader();

Add this format loader to the engine, allowing it to recognize the file extensions returned by ImageFormatLoaderExtension._GetRecognizedExtensions.

RemoveFormatLoadervoid
# RemoveFormatLoader
C#
public void RemoveFormatLoader();

Remove this format loader from the engine.

_GetRecognizedExtensionsstring[]
# _GetRecognizedExtensions
C#
public virtual string[] _GetRecognizedExtensions();

Returns the list of file extensions for this image format. Files with the given extensions will be treated as image file and loaded using this class.

Returns string[]
_LoadImageError
# _LoadImage
C#
public virtual Error _LoadImage(Image image, FileAccess fileaccess, ImageFormatLoader.LoaderFlags flags, float scale);

Loads the content of fileaccess into the provided image.

Parameters
NameTypeDefault
imageImage—
fileaccessFileAccess—
flagsImageFormatLoader.LoaderFlags—
scalefloat—
Returns Error
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.