< Back

New-OxyImageAnnotation

Sat Jan 18, 2020 6:19 pm

NAME New-OxyImageAnnotation



SYNOPSIS

Returns an object that represents an annotation that shows an image.





SYNTAX

New-OxyImageAnnotation [-AddTo <OxyPlot.PlotModel>] [-Font <System.String>] [-FontSize

<Horker.OxyPlotCli.TypeAdaptors.Double>] [-FontWeight <Horker.OxyPlotCli.TypeAdaptors.Double>] [-Height

<Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-HorizontalAlignment <OxyPlot.HorizontalAlignment>] [-ImageSource

<Horker.OxyPlotCli.TypeAdaptors.OxyImage>] [-Interpolate <Horker.OxyPlotCli.TypeAdaptors.Bool>] [-Layer

<OxyPlot.Annotations.AnnotationLayer>] [-OffsetX <Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-OffsetY

<Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-Opacity <Horker.OxyPlotCli.TypeAdaptors.Double>] [-PassThru]

[-Selectable <Horker.OxyPlotCli.TypeAdaptors.Bool>] [-SelectionMode <OxyPlot.SelectionMode>] [-Style

<System.String>] [-Tag <System.Object>] [-TextColor <Horker.OxyPlotCli.TypeAdaptors.OxyColor>] [-ToolTip

<System.String>] [-VerticalAlignment <OxyPlot.VerticalAlignment>] [-Width

<Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-X <Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-XAxisKey

<System.String>] [-Y <Horker.OxyPlotCli.TypeAdaptors.PlotLength>] [-YAxisKey <System.String>] [<CommonParameters>]





DESCRIPTION

Returns an object that represents an annotation that shows an image.





PARAMETERS

-AddTo <OxyPlot.PlotModel>

Specifies the PlotModel object to which the object is added.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Font <System.String>

Sets the font. The default is null (use OxyPlot.PlotModel.DefaultFont.



If the value is null, the DefaultFont of the parent PlotModel will be used.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-FontSize <Horker.OxyPlotCli.TypeAdaptors.Double>

Sets the size of the font. The default is double.NaN (use OxyPlot.PlotModel.DefaultFontSize).



If the value is NaN, the DefaultFontSize of the parent PlotModel will be used.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-FontWeight <Horker.OxyPlotCli.TypeAdaptors.Double>

Sets the font weight. The default is FontWeights.Normal.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Height <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the height.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HorizontalAlignment <OxyPlot.HorizontalAlignment>

Sets the horizontal alignment.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ImageSource <Horker.OxyPlotCli.TypeAdaptors.OxyImage>

Sets the image source.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Interpolate <Horker.OxyPlotCli.TypeAdaptors.Bool>

Sets a value indicating whether to apply smooth interpolation to the image.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Layer <OxyPlot.Annotations.AnnotationLayer>

Sets the rendering layer of the annotation. The default value is

OxyPlot.Annotations.AnnotationLayer.AboveSeries.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OffsetX <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the X offset.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OffsetY <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the Y offset.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Opacity <Horker.OxyPlotCli.TypeAdaptors.Double>

Sets the opacity (0-1).



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PassThru <System.Management.Automation.SwitchParameter>

Returns a created object when the -AddTo, -OutFile or -Show parameter is specified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Selectable <Horker.OxyPlotCli.TypeAdaptors.Bool>

Sets a value indicating whether this element can be selected. The default is true.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SelectionMode <OxyPlot.SelectionMode>

Sets the selection mode of items in this element. The default is SelectionMode.All.



This is only used by the select/unselect functionality, not by the rendering.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Style <System.String>

Specifies the style.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Tag <System.Object>

Sets an arbitrary object value that can be used to store custom information about this plot element. The

default is null.



This property is analogous to Tag properties in other Microsoft programming models. Tag is intended to provide

a pre-existing property location where you can store some basic custom information about any PlotElement

without requiring you to subclass an element.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TextColor <Horker.OxyPlotCli.TypeAdaptors.OxyColor>

Sets the color of the text. The default is OxyColors.Automatic (use OxyPlot.PlotModel.TextColor).



If the value is OxyColors.Automatic, the TextColor of the parent PlotModel will be used.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ToolTip <System.String>

Sets the tool tip. The default is null.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-VerticalAlignment <OxyPlot.VerticalAlignment>

Sets the vertical alignment.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Width <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the width.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-X <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the X position of the image.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-XAxisKey <System.String>

Sets the X axis key.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Y <Horker.OxyPlotCli.TypeAdaptors.PlotLength>

Sets the Y position of the image.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-YAxisKey <System.String>

Sets the Y axis key.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

OxyPlot.Annotations.ImageAnnotation







NOTES











RELATED LINKS

Online Version: https://github.com/horker/oxyplotcli2/b ... otation.md