Virtual Method

GeglMetadataset_resolution

Declaration [src]

gboolean
set_resolution (
  GeglMetadata* metadata,
  GeglResolutionUnit unit,
  gfloat x,
  gfloat y
)

Description [src]

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.

Parameters

unit GeglResolutionUnit
 

Specify GeglResolutionUnit.

x gfloat
 

X resolution.

y gfloat
 

Y resolution.

Return value

Returns: gboolean
 

TRUE if successful.