Skip to content

ImageOrientationDrawExtensions.DrawImageOriented method

Draws orientedSrc (a region in the image’s oriented pixel space) into dest, applying orientation. Composes raw->oriented (the rotation/flip) with oriented->dest (scale/translate) so the backend rasterizes the rotation in one pass. rawWidth/rawHeight are the as-decoded pixel dimensions.

public static void DrawImageOriented(this IGraphicsContext context, IImage image,
ImageOrientation orientation, int rawWidth, int rawHeight, Rect orientedSrc, Rect dest)