콘텐츠로 이동

ImageOrientationDrawExtensions class

이 콘텐츠는 아직 번역되지 않았습니다.

Draw helper that applies an ImageOrientation while drawing. Raw DrawImage calls do not auto-orient (the backend only sees an IImage with no orientation, and the apply-or-ignore choice belongs to the caller), so any consumer that wants oriented output - the Image control, blurred backdrops, thumbnails - routes through this single implementation instead of re-deriving the transform.

public static class ImageOrientationDrawExtensions
name description
static DrawImageOriented(…) 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.