logicalExtentPhysicalSize function
- LogicalExtent extent
Computes the size in pixels of a target with a logical size and scale factor.
See mln_logical_extent_physical_size in the
C API reference.
Implementation
(int, int) logicalExtentPhysicalSize(LogicalExtent extent) =>
withNativeArena((arena) {
ensureAbiVersion();
final outWidth = arena<Uint32>();
final outHeight = arena<Uint32>();
_check(
raw.mln_logical_extent_physical_size(
_writeLogicalExtent(extent, arena).ref,
outWidth,
outHeight,
nativeDiagnostic,
),
);
return (outWidth.value, outHeight.value);
});