# ImageSetAntiAliasing

## Syntax

```
ImageSetAntiAliasing( name [, antialias] )
```

Or as a member:

```
someImage.setAntiAliasing( [antialias] )
```

## Arguments

| Name      | Type    | Required | Default | Description                                                                   |
| --------- | ------- | -------- | ------- | ----------------------------------------------------------------------------- |
| name      | any     | Yes      |         | The image to set anti-aliasing for. Can be a `BoxImage` object or image name. |
| antialias | boolean | No       | true    | Whether to enable (true) or disable (false) anti-aliasing.                    |

## Returns

`BoxImage` — The image object with updated anti-aliasing setting.

## Description

Enables or disables anti-aliasing for the specified image. Anti-aliasing smooths the edges of graphics and text, improving visual quality when drawing or transforming images.

## Example

```boxlang
// Enable anti-aliasing
result = ImageSetAntiAliasing( myImage, true );

// Disable anti-aliasing
result = ImageSetAntiAliasing( myImage, false );

// As a member function
myImage.setAntiAliasing( true );
```

## Related BIFs

* ImageDrawText
* ImageDrawLine
* ImageResize

## Notes

* The `name` argument can be a `BoxImage` object or the name of an image variable in the current context.
* The operation modifies the image in place when used as a member function.
* Returns the modified image object for chaining or further processing.
* Anti-aliasing is recommended for smoother graphics and text rendering.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-framework/modularity/image-manipulation/reference/built-in-functions/imagesetantialiasing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
