# Outline filter

Source: https://ref.dm-lang.org/notes/filters/outline
Added in BYOND 512.

**Format**

> filter(type="outline", ...)

**Args**

> size: Width in pixels (defaults to 1)

Applies an outline to this image.

At larger sizes, the outline is less accurate and will take more passes to produce. Performance and appearance are best at sizes close to 1 or less.

`flags` can be a combination of the following values:

- **0**: Ordinary outline
- **OUTLINE_SHARP**: Avoid antialiasing in the outline
- **OUTLINE_SQUARE**: Extend the outline sharply from corner pixels; for a box this will maintain a box shape without rounded corners

### See also
> [Drop shadow (filters)](https://ref.dm-lang.org/notes/filters/drop_shadow.md)
