示例#1
0
        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));
            }
        }
示例#2
0
 protected override object EvaluatePreview(SDK.PreviewContext context)
 {
     // TODO: create image with palette
     return(null);
 }
示例#3
0
        // 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()));
        }
示例#4
0
 protected override object EvaluatePreview(SDK.PreviewContext previewContext)
 {
     return(Image.CreatePreview(previewContext));
 }
示例#5
0
 protected override object EvaluatePreview(SDK.PreviewContext context)
 {
     return(Evaluate().CreatePreview(context));
 }
示例#6
0
        // 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);
        }