Skip to content

OrientationTransform.CreateRawToOrientedMatrix method

Builds the raw-to-oriented affine transform for an image of the given raw size; entries are 0 or ±1 plus a width/height translation, so the transform is exact for integer pixel coordinates.

public static Matrix3x2 CreateRawToOrientedMatrix(ImageOrientation orientation, double rawWidth,
double rawHeight)