[]
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)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, annotations As IList(Of AnnotationBase), Optional renderingCache As RenderingCache = Nothing, Optional ignoreErrors As Boolean = 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)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, annotations As IList(Of AnnotationBase), viewState As ViewState, Optional renderingCache As RenderingCache = Nothing, Optional ignoreErrors As Boolean = True, Optional drawAnnotationFilter As SaveAsImageOptions.DrawAnnotationFilterCallback = Nothing)
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)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, Optional renderingCache As RenderingCache = Nothing)
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. |