Trait gegl::prelude::MetadataExt

source ·
pub trait MetadataExt: IsA<Metadata> + Sealed + 'static {
    // Provided methods
    fn set_resolution(&self, unit: ResolutionUnit, x: f32, y: f32) -> bool { ... }
    fn unregister_map(&self) { ... }
}
Expand description

Trait containing all Metadata methods.

Implementors

MetadataHash, MetadataStore, Metadata

Provided Methods§

source

fn set_resolution(&self, unit: ResolutionUnit, x: f32, y: f32) -> bool

Set resolution retrieved from image file’s metadata. Intended for use by the image file reader. If resolution is not supported by the application or if the operation fails false is returned and the values are ignored.

unit

Specify ResolutionUnit

x

X resolution

y

Y resolution

Returns

true if successful.

source

fn unregister_map(&self)

Unregister the file module mappings and any further mappings added or modified by the application. This should be called after the file module completes operations.

Implementors§

source§

impl<O: IsA<Metadata>> MetadataExt for O