---
title: "MTRasterLayer.opacity | Mobile sdk | Mobile sdk android | Android"
description: "opacity"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTRasterLayer.opacity

var [opacity](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style.layer.raster/-m-t-raster-layer/opacity/): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?

The opacity at which the image will be drawn. Optional number between 0 and 1 inclusive. Defaults to 1.
