DynaPDF.SetAnnotOpacity
-----------------------

Changes the opacity of a markup annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetAnnotOpacity"; PDF; AnnotationHandle; Opacity ) 

**MBS**( **"DynaPDF.SetAnnotOpacity";** /\* Changes the opacity of a markup annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$Opacity**) /\* The new opacity value.e.g. 1.0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |
| Opacity | The new opacity value. | 1.0 |

### Result

Returns OK or error.

### Description

Changes the opacity of a markup annotation.   
The function [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md) can be used to determine whether an annotation is a markup annotation.   
  
See also [SetAnnotOpacity](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetAnnotOpacity.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAnnotDate](DynaPDFSetAnnotDate.md)
- [DynaPDF.SetAnnotFlags](DynaPDFSetAnnotFlags.md)
- [DynaPDF.SetAnnotFlagsEx](DynaPDFSetAnnotFlagsEx.md)
- [DynaPDF.SetAnnotOpenState](DynaPDFSetAnnotOpenState.md)
- [DynaPDF.SetAnnotString](DynaPDFSetAnnotString.md)
- [DynaPDF.SetOpacity](DynaPDFSetOpacity.md)

This function checks for a license.

Created 27th January 2016 , last changed 27th January 2016

  
[DynaPDF.SetAnnotLineEndStyle](DynaPDFSetAnnotLineEndStyle.md) - [DynaPDF.SetAnnotOpenState](DynaPDFSetAnnotOpenState.md)

[HTML Version](DynaPDFSetAnnotOpacity.shtml)