pub fn new<P: Into<PathBuf>>(path: P) -> Self {
		Self {
			image: path.into(),
			centre_position: None,
			scale: (1.0, 1.0),
		}
	}
/// Creates a new state from the path to the image.
Creates a new state from the path to the image.
Creates a new state from the path to the image .
pub fn new<P: Into<PathBuf>>(path: P) -> Self {
		Self {
			image: path.into(),
			centre_position: None,
			scale: (1.0, 1.0),
		}
	}
pub fn new < P : Into < PathBuf > > ( path : P ) -> Self { Self { image : path . into ( ) , centre_position : None , scale : ( 1.0 , 1.0 ) , } }
Creates a new state from the path to the image.
Creates a new state from the path to the image .
path
P
path
P