---
name: "ModifyWorldTransform"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ModifyWorldTransform"
---

# ModifyWorldTransform(3w)

## NAME

**ModifyWorldTransform** (GDI32.@)

## SYNOPSIS

BOOL ModifyWorldTransform\
  (\
   HDC          *hdc*,\
   const XFORM\* *xform*,\
   DWORD        *iMode*\
  )

## DESCRIPTION

Modifies the world transformation for a device context.

## PARAMS

*hdc* **\[In\]**  Handle to device context.

*xform* **\[In\]**  **XFORM** structure that will be used to modify the world transformation.

*iMode* **\[In\]**  Specifies in what way to modify the world transformation Possible values: **MWT\_IDENTITY** Resets the world transformation to the identity matrix. The parameter *xform* is ignored. **MWT\_LEFTMULTIPLY** Multiplies *xform* into the world transformation matrix from the left. **MWT\_RIGHTMULTIPLY** Multiplies *xform* into the world transformation matrix from the right.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**. Use **[GetLastError(3w)](/GetLastError/3w.md)** to determine the cause.

## IMPLEMENTATION

Defined in **"gdi\_private.h"**.

Implemented in **"dlls/gdi32/dc.c"**.

Debug channel **"dc"**.
