Skip to main content
Version: 1.0.0-preview.34

Velaptor.Graphics.ImageLoader

Velaptor

Velaptor.Graphics

ImageLoader Class

Loads images from disk.

public class ImageLoader :
Velaptor.Graphics.IImageLoader

Inheritance System.Object → ImageLoader

Implements IImageLoader

Constructors

ImageLoader() Constructor

Initializes a new instance of the ImageLoader class.

public ImageLoader();

Methods

LoadImage(string)

public Velaptor.Graphics.ImageData LoadImage(string filePath);

Parameters

filePath System.String

The relative or absolute file path to the image.

Implements LoadImage(string)

Returns

ImageData
The image data.

Remarks

If the filePath is a relative path, it will be resolved
to the content directory of the application.


The default content directory is Content/Graphics/.