IVectorImageReader

Description

interface Tinman.Engine.Drawing.IVectorImageReader

Base interface for classes that read 2D vector image files and wrap them in IVectorImage objects.

Public / Methods

Can​Read


public method CanRead → (1)

path in : Path

[not-null]
Path to the vector image file.

returns → bool

true if the given vector image file is supported,
false if the given vector image file is not supported.

Checks if this reader can read the given vector image file.

If this method returns false, Read will always throw a ValidatingException. Otherwise, it will only throw an exception for I/O errors and invalid file formats.

Read


[OwnerReturn]
public method Read → (1)

path in : Path

[not-null]
Path to the vector image file.

returns → IVectorImage

The loaded vector image.

Load the given vector image file.

IOException

If an I/O error has occurred.

ValidatingException

If the file format is invalid or not supported.