---
title: "convertPoint(fromSpace:fromX:fromY:toSpace:toX:toY:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 3.1+]
path: "professional_video_applications/fxonscreencontrolapi/convertpoint(fromspace:fromx:fromy:tospace:tox:toy:)"
---

# convertPoint(fromSpace:fromX:fromY:toSpace:toX:toY:)

Converts a position from object space to canvas space.

## Declaration

```swift
func convertPoint(fromSpace: FxDrawingCoordinates, fromX: Double, fromY: Double, toSpace: FxDrawingCoordinates, toX: UnsafeMutablePointer<Double>!, toY: UnsafeMutablePointer<Double>!)
```

## Parameters

- `fromSpace`: The coordinate space to convert from.
- `fromX`: The X coordinate of the position to convert from.
- `fromY`: The Y coordinate of the position to convert from.
- `toSpace`: The coordinate space to convert to.
- `toX`: Returns, by-reference, the X coordinate of the computed position.
- `toY`: Returns, by-reference, the Y coordinate of the computed position.

## Mentioned in

Adding onscreen controls to plug-ins
