[]
Draws specified annotations on a GcGraphics.
Note that the specified annotations must belong to the current page.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, RenderingCache renderingCache = null, bool ignoreErrors = true)
| Type | Name | Description |
|---|---|---|
| GcGraphics | graphics | The GcGraphics on which to draw the annotations. |
| RectangleF | bounds | The draw bounds. |
| IList<AnnotationBase> | annotations | The list of annotations to draw. |
| RenderingCache | renderingCache | The RenderingCache object used to cache objects created during rendering. |
| bool | ignoreErrors | Indicates whether to ignore errors in PDF content stream during rendering. |
Draws specified annotations on a GcGraphics.
Note that the specified annotations must belong to the current page.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, ViewState viewState, RenderingCache renderingCache = null, bool ignoreErrors = true, SaveAsImageOptions.DrawAnnotationFilterCallback drawAnnotationFilter = null)
| Type | Name | Description |
|---|---|---|
| GcGraphics | graphics | The GcGraphics on which to draw the annotations. |
| RectangleF | bounds | The draw bounds. |
| IList<AnnotationBase> | annotations | The list of annotations to draw. |
| ViewState | viewState | The ViewState object. |
| RenderingCache | renderingCache | The RenderingCache object used to cache objects created during rendering. |
| bool | ignoreErrors | Indicates whether to ignore errors in PDF content stream during rendering. |
| SaveAsImageOptions.DrawAnnotationFilterCallback | drawAnnotationFilter | Used to check should be annotation rendered or not. |
Draws all page annotations on a GcGraphics.
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, RenderingCache renderingCache = null)
| Type | Name | Description |
|---|---|---|
| GcGraphics | graphics | The GcGraphics on which to draw the annotations. |
| RectangleF | bounds | The draw bounds. |
| RenderingCache | renderingCache | The RenderingCache object used to cache objects created during rendering. |