All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.nacular.doodle.image.Image.kt Maven / Gradle / Ivy

package io.nacular.doodle.image

import io.nacular.doodle.geometry.Size


/**
 * An image that has been loaded into the application.
 */
public interface Image {
    /** The width, height of the image */
    public val size: Size

    /** The source of the image */
    public val source: String
}

public inline val Image.width: Double get () = size.width
public inline val Image.height: Double get() = size.height




© 2015 - 2024 Weber Informatics LLC | Privacy Policy