GeometricAttributes.createFromStruct constructor

GeometricAttributes.createFromStruct(
  1. id3FaceGeometricAttributes value
)

Create a new instance of the GeometricAttributes from the native struct

Implementation

GeometricAttributes.createFromStruct(id3FaceGeometricAttributes value) : _handle = calloc() {
  _handle.ref.HeadImageHeightRatio = value.HeadImageHeightRatio;
  _handle.ref.HeadImageWidthRatio = value.HeadImageWidthRatio;
  _handle.ref.HorizontalPosition = value.HorizontalPosition;
  _handle.ref.Resolution = value.Resolution;
  _handle.ref.VerticalPosition = value.VerticalPosition;
  _finalizer.attach(this, _handle, detach: this);
}