PeachDrawing.PDF.PdfCanvas

PdfCanvas.PaintRequiresTransparency(Action<Canvas>) Method

Whether painting through paint would need transparency (a transparency group, a soft mask, a constant alpha) on this canvas. A canvas whose output forbids transparency (PDF/A-1, PDF/X-1a/X-3) answers by running paint against a scratch target of its own that is never saved, so the answer comes from the same code that decides what the canvas emits. A canvas with no notion of forbidden transparency - a raster surface, say - uses this default and answers false without running paint.

public override bool PaintRequiresTransparency(System.Action<PeachDrawing.Core.Canvas> paint);

Parameters

paint System.Action<Canvas>

paints the content in question onto the canvas it is given

Returns

System.Boolean