protected override object EvaluatePreview(SDK.PreviewContext context) { var ffamily = Evaluate(); if (ffamily == null) { return(null); } using (var o = ffamily.RenderText("Lorem ipsum dolor sit amet", 48, 4, PIXEL32.Black, TextGraphicsOptions.Default) as IMAGE32) { return(o.CreatePreview(context)); } }
protected override object EvaluatePreview(SDK.PreviewContext context) { // TODO: create image with palette return(null); }
// the preview is probably failing in the sink because it's a final object protected override object EvaluatePreview(SDK.PreviewContext previewContext) { var result = Evaluate(); return(result == null ? "NULL" : string.Join(" ", result.AsArray())); }
protected override object EvaluatePreview(SDK.PreviewContext previewContext) { return(Image.CreatePreview(previewContext)); }
protected override object EvaluatePreview(SDK.PreviewContext context) { return(Evaluate().CreatePreview(context)); }
// TODO: add boolean to enable TILEABLE mode: // before applying the effect, we create a multitile, then apply the effect, then crop back to the original. // TODO: unfortunately, this doesn't return anything that can be used as a preview. // Ideally, the preview for this object would be the preview of the parent TransformStack up to this node. // so the preview would be to add a SDK.PreviewContext property called UseParentPreview. // when the parent preview is called, it should somehow, know which child node requested the preview protected override object EvaluatePreview(SDK.PreviewContext previewContext) { return(null); }