Project

ImagePlayground

Automate image processing, codes, metadata, charts, topology, and visual stories from PowerShell.

Stars 100
Forks 7
Total downloads 712,347
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-08-25

API Reference

Command

ConvertTo-ImageStorySource

Namespace ImagePlayground
Inputs
System.String
Outputs
ChartForgeX.Stories.StorySourceText

Converts exact source text into renderer-neutral syntax spans for visual stories.

Remarks

PowerShell uses the native System.Management.Automation parser. Other languages can provide an optional IStorySourceTokenizer adapter without adding parser dependencies to ChartForgeX.

Examples

Authored help example

Tokenize PowerShell source

PS>


$source = ConvertTo-ImageStorySource -Text 'Get-Process | Sort-Object CPU -Descending' -Language PowerShell
        

Returns exact source text with semantic spans suitable for New-ImageStoryPanel.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

ConvertTo-ImageStorySource [-Language <String>] -Text <String> [-Tokenizer <IStorySourceTokenizer>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Language String optionalposition: namedpipeline: False
Language identifier. PowerShell uses its native parser; Plain preserves text without tokenization.
Text String requiredposition: 0pipeline: True (ByValue)
Exact source text, including whitespace and line endings.
Tokenizer IStorySourceTokenizer optionalposition: namedpipeline: False
Optional tokenizer adapter for C#, Bash, or another language.

Outputs

ChartForgeX.Stories.StorySourceText