package dev.fyloz.plannervio.core.service

import dev.fyloz.plannervio.core.model.BackgroundImage
import javafx.scene.image.Image

/**
 * A service for background images.
 */
interface IBackgroundImageService {

    /**
     * Load the JavaFX image for a given BackgroundImage.
     *
     * If the file cannot be loaded, null will be returned.
     *
     * @param image The image to load
     * @return The JavaFX image for the BackgroundImage
     */
    fun loadImage(image: BackgroundImage): Image?

}
