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
Provided Methods§
sourcefn set_resolution(&self, unit: ResolutionUnit, x: f32, y: f32) -> bool
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.
sourcefn unregister_map(&self)
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.