• Introduction
  • Theory
  • Guides
  • Tutorials
  • FAQ
  • Articles
  • Documentation
  • PDF
Search Results for

    Show / Hide Table of Contents
    • Changelog
    • Contributing
    • Code paths
    • Debugging
    • Code of conduct
    • Commands
      • Help
      • Analyze Long Recording
      • False Colour Spectrograms
      • Concatenate Index Files
    • Config files
      • GenericRecognizerConfig
      • CommonParameters
      • OscillationParameters
      • HarmonicParameters
      • PostProcessingConfig
      • AnalyzerConfig
    • API
      • Acoustics.Shared
        • AnalysisIo
        • AnalysisIoInputDirectory
        • AppConfigHelper
        • Base58
        • Binary
        • ByteCountFormatter
        • DateTimeFormatter
        • FileDateHelpers
        • FilenameHelpers
        • ImageChrome
        • Interval<T>
        • IntervalExtensions
        • InvalidDataSetException
        • InvalidFileDateException
        • IOrderer<TOrder>
        • Json
        • Json.IntervalConverter
        • Json.LegacyTimeSpanDataConverter
        • MediaTypeExtGroup
        • MediaTypeGroup
        • MediaTypes
        • Meta
        • MultiException
        • NonClosingStreamWrapper
        • OrderCoordinator<T>
        • Orderer<TOrder, TOrderProperty>
        • PathDiagnostics
        • PathDiagnostics.PathDiffReport
        • PathUtils
        • Plugins
        • ProcessRunner
        • ProcessRunner.ProcessMaximumRetriesException
        • SortDirection
        • SpectrogramType
        • SunTimes
        • SunTimes.Coords
        • SunTimes.LatitudeCoords
        • SunTimes.LatitudeCoords.Direction
        • SunTimes.LongitudeCoords
        • SunTimes.LongitudeCoords.Direction
        • TempFileHelper
        • TimeSpanFormatter
        • Topology
        • TwoDimensionalArray
        • Validation
        • ValidationExtensions
        • Yaml
        • YamlTypeTagAttribute
      • Acoustics.Shared.ColorScales
        • ColorBrewer
        • ColorBrewer.DivergingPalettes
        • ColorBrewer.QualitativePalettes
        • ColorBrewer.SequentialMultipleHuesPalettes
        • ColorBrewer.SequentialSingleHuePalettes
        • Palette
        • Type
      • Acoustics.Shared.ConfigFile
        • Config
        • ConfigFile
        • ConfigFileException
        • ConfigFileExtensions
        • ConfigSerializeContractResolver
        • IConfig
        • INamedProfiles<T>
        • IProfiles<T>
      • Acoustics.Shared.Contracts
        • Contract
      • Acoustics.Shared.Csv
        • Csv
        • CsvIntervalConverter
        • CsvSetPointConverter
        • TopologyEnumConverter
      • Acoustics.Shared.Extensions
        • CartesianExtension
        • RandomExtensions
      • Acoustics.Shared.ImageSharp
        • DeltaImageProcessor<TPixelBg, TPixelFg>
        • DeltaImageProcessor<TPixelFg>
        • DeltaPixelBlender<TPixel>
        • Drawing
        • Drawing.NoAA
        • IInterval2<TX, TY>
        • RotateFlipType
      • Acoustics.Shared.Logging
        • Log4NetTextWriter
        • Log4NetTextWriter.Mode
        • Logging
      • Acoustics.Tools
        • AudioFilePreparer
        • AudioReadingRequest
        • AudioUtilityInfo
        • AudioUtilityModifiedInfo
        • AudioUtilityRequest
        • BandPassType
        • SpectrogramRequest
      • Acoustics.Tools.Audio
        • AbstractAudioUtility
        • AbstractSpectrogramUtility
        • AbstractUtility
        • AudioFormatNotSupportedException
        • AudioUtilityException
        • BitDepthOperationNotImplemented
        • ChannelNotAvailableException
        • ChannelSelectionOperationNotImplemented
        • CustomSpectrogramUtility
        • FfmpegAudioUtility
        • FfmpegRawPcmAudioUtility
        • IAudioUtility
        • ISpectrogramUtility
        • MasterAudioUtility
        • Mp3SpltAudioUtility
        • Mp3SpltAudioUtility.SplitFileInfo
        • ShntoolAudioUtility
        • SoxAudioUtility
        • SoxAudioUtility.SoxResampleQuality
        • SoxSpectrogramUtility
        • WavPackAudioUtility
      • Acoustics.Tools.Wav
        • IWavReader
        • WavAudioInfo
        • WavChunk
        • WavReader
        • WavReader.WaveFormat
        • WavStreamReader
        • WavUtils
      • AcousticWorkbench
        • AcousticEventService
        • AcousticWorkbenchResponse<T>
        • Api
        • AudioRecordingService
        • AuthenticatedApi
        • AuthenticationService
        • AuthenticationService.EmailLoginRequest
        • AuthenticationService.LoginRequest
        • AuthenticationService.LoginResponse
        • Error
        • IApi
        • IAuthenticatedApi
        • MediaService
        • Meta
        • Service
        • Service.HttpResponseException
        • UrlGenerator
      • AcousticWorkbench.Models
        • AudioEvent
        • AudioRecording
        • Available
        • CommonParameters
        • FormatInfo
        • ImageFormatInfo
        • Media
        • Recording
        • Tagging
      • AForge.Imaging.Filters
        • BaseUsingCopyPartialFilter
        • CannyEdgeDetector
      • AnalysisBase
        • AbstractStrongAnalyser
        • AnalysisCoordinator
        • AnalysisResult
        • AnalysisResult2
        • AnalysisSettings
        • AnalyzerConfig
        • AudioRecordingTooShortException
        • Author
        • Bibliography
        • Citation
        • FileSegment
        • FileSegment.FileDateBehavior
        • IAnalyser2
        • ICiteable
        • IHasStatus
        • ISourcePreparer
        • SaveBehavior
        • SaveBehaviorExtensions
        • SegmentSettings<TSegment>
        • SegmentSettingsBase
        • SegmentSplitException
        • Status
        • TimeAlignment
      • AnalysisBase.Extensions
        • ModifiedInfoExtensions
      • AnalysisBase.ResultBases
        • EventBase
        • EventIndex
        • ITemporalEvent
        • ResultBase
        • SpectralIndexBase
        • SummaryIndexBase
      • AnalysisBase.Segment
        • InvalidSegmentException
        • ISegment<TSource>
        • SourceMetadata
      • AnalysisPrograms
        • AcousticIndices
        • AcousticIndices.AcousticIndicesConfig
        • Aed
        • Aed.AedConfiguration
        • Aed.Arguments
        • AnalysesAvailable
        • Audio2InputForConvCnn
        • Audio2InputForConvCnn.Arguments
        • Audio2InputForConvCnn.AudioToSonogramResult
        • Audio2InputForConvCnn.CsvDataRecord
        • Audio2InputForConvCnn.SpeciesCounts
        • AudioCutter
        • AudioCutter.Arguments
        • AudioFileCheck
        • AudioFileCheck.Arguments
        • BuildMetadata
        • ChannelIntegrityAnalyzer
        • CheckEnvironment
        • CheckEnvironment.Arguments
        • ConcatenateIndexFiles
        • ConcatenateIndexFiles.Arguments
        • Create4Sonograms
        • Create4Sonograms.Arguments
        • Crow
        • DifferenceSpectrogram
        • DifferenceSpectrogram.Arguments
        • DrawEasyImage
        • DrawEasyImage.Arguments
        • DrawLongDurationSpectrograms
        • DrawLongDurationSpectrograms.Arguments
        • DrawSummaryIndexTracks
        • DrawSummaryIndexTracks.Arguments
        • DummyAnalysis
        • DummyAnalysis.Arguments
        • EPR
        • EPR.Arguments
        • FileRenamer
        • FileRenamer.Arguments
        • GroundParrotRecogniser
        • GroundParrotRecogniser.Arguments
        • Human1
        • KoalaMale
        • KoalaMale.KoalaMaleResults
        • LSKiwi3
        • LSKiwi3.Arguments
        • LSKiwiHelper
        • LSKiwiROC
        • LSKiwiROC.Arguments
        • MahnooshSandpit
        • MahnooshSandpit.Arguments
        • MainEntry
        • OscillationRecogniser
        • OscillationRecogniser.Arguments
        • OscillationsGeneric
        • OscillationsGeneric.Arguments
        • PlanesTrainsAndAutomobiles
        • PreprocessorForConvDnn
        • PreprocessorForSurfAnalysis
        • RheobatrachusSilus
        • Sandpit
        • Sandpit.Arguments
        • Segment
        • Segment.Arguments
        • SnrAnalysis
        • SnrAnalysis.Arguments
        • SpeciesAccumulationCurve
        • SpeciesAccumulationCurve.Arguments
        • SpeciesAccumulationStats
        • SPT
        • SPT.Arguments
        • SurfAnalysis
        • SurfAnalysis.Arguments
        • SurfAnalysis.AudioToSonogramResult
        • SurfAnalysis.CsvDataRecord
        • SurfAnalysis.SpeciesCounts
      • AnalysisPrograms.AcousticWorkbench.Orchestration
        • EventMetadataResolver
        • RemoteSegment
        • RemoteSegmentWithData
      • AnalysisPrograms.AnalyseLongRecordings
        • AnalyseLongRecording
        • AnalyseLongRecording.Arguments
      • AnalysisPrograms.ContentDescription
        • BuildModel
        • BuildModel.Arguments
        • UseModel
        • UseModel.CdConfig
      • AnalysisPrograms.Draw.RibbonPlots
        • RibbonPlot
        • RibbonPlot.Arguments
      • AnalysisPrograms.Draw.Zooming
        • DrawZoomingSpectrograms
        • DrawZoomingSpectrograms.Arguments
        • DrawZoomingSpectrograms.Arguments.ZoomActionType
      • AnalysisPrograms.EventStatistics
        • EventStatisticsAnalysis
        • EventStatisticsEntry
        • EventStatisticsEntry.Arguments
        • ImportedEvent
        • ImportedEvent.ImportedEventNameClassMap
      • AnalysisPrograms.Production
        • AnalysisOptionDevilException
        • CommandLineApplicationExtensions
        • CommandLineArgumentException
        • CustomHelpTextGenerator
        • ExceptionLookup
        • ExceptionLookup.ExceptionStyle
        • FileSystemProvider
        • FileSystemProvider.Options
        • InvalidAudioChannelException
        • InvalidDurationException
        • InvalidStartOrEndException
        • MissingDataException
        • NoDeveloperMethodException
        • PhysicalConsoleLogger
      • AnalysisPrograms.Production.Arguments
        • AnalyserArguments
        • DebugOptions
        • HelpArgs
        • ListArgs
        • LogVerbosity
        • MainArgs
        • SourceAndConfigArguments
        • SourceArguments
        • SourceConfigOutputDirArguments
        • SubCommandBase
      • AnalysisPrograms.Production.Parsers
        • DateTimeOffsetParser
        • DirectoryInfoParser
        • FileInfoParser
        • TimeSpanParser
      • AnalysisPrograms.Production.Validation
        • DirectoryExistsOrCreateAttribute
        • ExistingFileAttribute
        • InRangeAttribute
        • NotExistingFileAttribute
        • OneOfThese
      • AnalysisPrograms.Recognizers
        • GenericRecognizer
        • GenericRecognizer.GenericRecognizerConfig
        • NinoxStrenua
        • NinoxStrenua.NinoxStrenuaConfig
        • PetaurusAustralis
        • PetaurusAustralis.PetaurusAustralisConfig
        • PetaurusBreviceps
        • PetaurusBreviceps.PetaurusBrevicepsConfig
        • PetaurusNorfolcensis
        • PetaurusNorfolcensis.PetaurusNorfolcensisConfig
      • AnalysisPrograms.Recognizers.Base
        • BlobParameters
        • CommonParameters
        • DctParameters
        • ForwardTrackParameters
        • HarmonicParameters
        • IEventRecognizer
        • MinAndMaxBandwidthParameters
        • MultiRecognizer
        • MultiRecognizer.MultiRecognizerConfig
        • OnebinTrackParameters
        • OneframeTrackParameters
        • OscillationParameters
        • RecognizerBase
        • RecognizerBase.RecognizerConfig
        • RecognizerEntry
        • RecognizerEntry.Arguments
        • RecognizerResults
        • UpwardTrackParameters
      • AnalysisPrograms.Recognizers.Birds
        • ArdeaInsignis
        • AtrichornisRufescens
        • AtrichornisRufescens.AtrichornisRufescensConfig
        • CalyptorhynchusLathami
        • CalyptorhynchusLathami.CalyptorhynchusLathamiConfig
        • ClimacterisPicumnus
        • ClimacterisPicumnus.ClimacterisPicumnusConfig
        • LewiniaPectoralis
        • LewinsRailConfig
        • ManorinaMelanophrys
        • ManorinaMelanophrys.ManorinaMelanophrysConfig
        • NinoxConnivens
        • NinoxConnivens.NinoxConnivensConfig
        • TytoNovaehollandiae
        • TytoNovaehollandiae.TytoNovaehollandiaeConfig
        • TytoTenebricosa
        • TytoTenebricosa.TytoTenebricosaConfig
      • AnalysisPrograms.Recognizers.Frogs
        • LitoriaBicolor
        • LitoriaBicolorConfig
        • LitoriaCaerulea
        • LitoriaRothii
        • LitoriaRubella
      • AnalysisPrograms.SourcePreparers
        • LocalSourcePreparer
        • RemoteSourcePreparer
        • RemoteSourcePreparerException
      • AnalysisPrograms.SpectralPeakTracking
        • SpectralPeakTrackingConfig
        • SpectralPeakTrackingEntry
        • SpectralPeakTrackingEntry.Arguments
      • AnalysisPrograms.SpectrogramGenerator
        • Audio2Sonogram
        • Audio2Sonogram.Arguments
        • AudioToSonogramResult
        • SpectrogramGenerator
        • SpectrogramGeneratorConfig
        • SpectrogramImageType
      • AnalysisPrograms.StandardizedFeatures
        • StandardizedFeatureExtraction
        • StandardizedFeatureExtractionConfig
        • StandardizedFeatureExtractionConfig.BandsProperties
        • StandardizedFeatureExtractionConfig.Bandwidth
      • AudioAnalysisTools
        • AcousticComplexityIndex
        • AcousticEntropy
        • AcousticEvent
        • AcousticEvent.AcousticEventClassMap
        • ActivityAndCover
        • AnalysisKeys
        • BirdClefExperiment1
        • BirdClefExperiment1.Arguments
        • BirdClefExperiment1.Output
        • BlobEvent
        • ChannelIntegrity
        • ChannelIntegrity.Arguments
        • ChannelIntegrityIndices
        • ChirpEvent
        • ClickEvent
        • ClusterInfo
        • ConfigKeys
        • ConfigKeys.EndpointDetection
        • ConfigKeys.ImageSave
        • ConfigKeys.Mfcc
        • ConfigKeys.Recording
        • ConfigKeys.Sonogram
        • ConfigKeys.SonogramTypes
        • ConfigKeys.Windowing
        • CrossCorrelation
        • EndpointDetectionConfiguration
        • FindMatchingEvents
        • FrommoltProject
        • HarmonicAnalysis
        • HarmonicEvent
        • IPointData
        • ISignalToImage
        • ISpectralPoint
        • ITracks<T>
        • MfccConfiguration
        • OscillationEvent
        • Oscillations2010
        • Oscillations2012
        • Oscillations2014
        • Oscillations2014.FreqVsOscillationsResult
        • Oscillations2019
        • PointOfInterest
        • ResultsTools
        • RidgeDetection
        • RidgeDetection.RidgeDetectionConfiguration
        • SiteDescription
        • SpectralActivity
        • SpectralCentroid
        • SpectralClustering
        • SpectralClustering.ClusteringParameters
        • SpectralClustering.TrainingDataInfo
        • SpectralPeakTracking2018
        • SpectralPeakTracking2018.Output
        • SpectralPeakTrackingSettings
        • SpectralPeakTracks
        • SprTools
        • SummaryActivity
        • SunAndMoon
        • SunAndMoon.SunMoonTides
        • SURFFeatures
        • TemporalEvent
        • TowseySignalToImage
        • UnitConverters
        • WebSignalToImage
        • WhipEvent
        • WhistleEvent
      • AudioAnalysisTools.ContentDescriptionTools
        • ContentAlgorithms
        • ContentSignatures
        • ContentVisualization
        • DataProcessing
        • DescriptionResult
        • EditStatus
        • FunctionalTemplate
        • SourceAudioProvenance
        • TemplateCollection
        • TemplateManifest
      • AudioAnalysisTools.DSP
        • Clipping
        • DSP_Frames
        • DSP_Frames.EnvelopeAndFft
        • DSP_IIRFilter
        • DspFilters
        • FeatureExtraction
        • FeatureLearning
        • FeatureLearningSettings
        • FFT2D
        • FreqScaleType
        • FrequencyScale
        • KmeansClustering
        • KmeansClustering.Output
        • LocalContrastNormalisation
        • MFCCStuff
        • NoiseProfile
        • NoiseReductionType
        • NoiseRemoval_Briggs
        • NoiseRemovalModal
        • OctaveFreqScale
        • PatchSampling
        • PatchSampling.SamplingMethod
        • PcaWhitening
        • PcaWhitening.Output
        • PowerSpectralDensity
        • SNR
        • SNR.BackgroundNoise
        • SNR.SnrStatistics
        • WaveType
        • WavInfo
        • WavWriter
      • AudioAnalysisTools.Events
        • EventCommon
        • EventExtentions
        • EventFilters
        • InstantEvent
        • SpectralEvent
        • SpectralPoint
      • AudioAnalysisTools.Events.Drawing
        • EventDrawer
        • EventRenderingOptions
        • IDrawableEvent
      • AudioAnalysisTools.Events.Interfaces
        • IInstantEvent
        • ISpectralBand
        • ISpectralEvent
        • ITrack
      • AudioAnalysisTools.Events.Tracks
        • Track
        • TrackType
      • AudioAnalysisTools.Events.Types
        • ChatterEvent
        • CompositeEvent
        • EventConverters
        • EventPostProcessing
        • EventPostProcessing.BandwidthConfig
        • EventPostProcessing.DurationConfig
        • EventPostProcessing.PostProcessingConfig
        • EventPostProcessing.SidebandConfig
        • EventPostProcessing.SyllableSequenceConfig
        • EventPostProcessing.SyllableStackConfig
      • AudioAnalysisTools.EventStatistics
        • EventStatistics
        • EventStatistics.EventStatisticsClassMap
        • EventStatisticsCalculate
        • EventStatisticsConfiguration
      • AudioAnalysisTools.Indices
        • AnalyzerConfigIndexProperties
        • ConcatMode
        • GapsAndJoins
        • IIndexPropertyReferenceConfiguration
        • IndexCalculate
        • IndexCalculateConfig
        • IndexCalculateResult
        • IndexCalculateSixOnly
        • IndexDisplay
        • IndexDistributions
        • IndexDistributions.SpectralStats
        • IndexGenerationData
        • IndexMatrices
        • IndexProperties
        • IndexPropertiesCollection
        • InitialiseIndexProperties
        • RainIndices
        • RainIndices.RainStruct
        • SpectralIndexValues
        • SpectralIndexValuesForContentDescription
        • SpectralIndicesToAndFromTable
        • SpectralIndicesToAndFromTable.Arguments
        • SummaryIndexValues
      • AudioAnalysisTools.LongDurationSpectrograms
        • LdSpectrogram3D
        • LdSpectrogram3D.Arguments
        • LDSpectrogramClusters
        • LdSpectrogramConfig
        • LdSpectrogramDifference
        • LDSpectrogramDiscreteColour
        • LDSpectrogramDistance
        • LDSpectrogramRGB
        • LdSpectrogramRibbons
        • LdSpectrogramStitching
        • LdSpectrogramTStatistic
        • SpectrogramConstants
        • SpectrogramType
        • TimeOffsetSingleLayerSuperTile
        • ZoomFocusedSpectrograms
      • AudioAnalysisTools.LongDurationSpectrograms.Zooming
        • InvalidScaleException
        • SpectrogramZoomingConfig
        • ZoomCommon
        • ZoomParameters
        • ZoomTiledSpectrograms
      • AudioAnalysisTools.Scales
        • LinearScale
      • AudioAnalysisTools.StandardSpectrograms
        • AmplitudeSonogram
        • AmplitudeSpectrogram
        • BaseSonogram
        • DecibelSpectrogram
        • EnergySpectrogram
        • Image_MultiTrack
        • ImageTrack
        • SonogramConfig
        • SpectrogramAttributes
        • SpectrogramCepstral
        • SpectrogramMelScale
        • SpectrogramOctaveScale
        • SpectrogramSettings
        • SpectrogramSobelEdge
        • SpectrogramStandard
        • SpectrogramTools
        • TrackType
      • AudioAnalysisTools.TileImage
        • AbsoluteDateTilingProfile
        • DefaultSuperTile
        • DuplicateTileException
        • ImageComponent
        • ISuperTile
        • Layer
        • PanoJsTilingProfile
        • TileBias
        • Tiler
        • TilingProfile
      • AudioAnalysisTools.Tracks
        • ForwardTrackAlgorithm
        • OnebinTrackAlgorithm
        • OneframeTrackAlgorithm
        • UpwardTrackAlgorithm
      • AudioAnalysisTools.WavTools
        • AudioRecording
        • RecordingFetcher
        • TowseyWavReader
        • WavChooser
      • Be.Timvw.Framework.Collections.Generic
        • PropertyComparer<T>
      • BTR.Core.Linq
        • ExpressionExtensions
        • ExpressionVisitor
        • ExpressionVisitor<T>
      • log4net
        • LogExtensions
      • NeuralNets
        • ART
        • ART_2A
        • BinaryCluster
        • Cluster
        • FuzzyART
        • VQ
      • QutSensors.Shared
        • StatDescriptive
        • StatDescriptiveResult
      • SixLabors.ImageSharp
        • ImageSharpExtensions
      • System
        • ArrayExtensions
        • DateTimeAndTimeSpanExtensions
        • DateTimeAndTimeSpanExtensions.RoundingDirection
        • DoubleExtensions
        • DoubleSquareArrayExtensions
        • DoubleSquareArrayExtensions.MergingDirection
        • EnumerableExtensions
        • EnumExtensions
        • ExceptionsExtensions
        • ExtensionsString
        • FileInfoExtensions
        • FileInfoNameComparer
        • LoggedConsole
        • MathExtensions
        • NoConsole
        • ObjectExtensions
        • ProcessExtensions
        • ProcessExtensions.ParentProcessUtilities
        • ReflectionExtensions
        • SystemExtensions
        • TupleExtensions
      • System.Collections.Generic
        • DictionaryExtensions
      • System.Drawing
        • RectangleExtensions
      • System.IO
        • ExtensionsIO
      • System.Threading.Tasks
        • TaskExtensions
      • System.Xml.Linq
        • ExtensionsXml
      • TowseyLibrary
        • AutoAndCrossCorrelation
        • ColorCubeHelix
        • ColorCubeHelix.HslColor
        • ConfigDict
        • ConfigDictionary
        • ConfigurationExtensions
        • CsvTools
        • CubeHelix
        • DataTableTools
        • DataTools
        • DictionaryTools
        • Distribution
        • FFT
        • FFT.WindowFunc
        • FileTools
        • FunctionalTests
        • GaussianTools
        • GraphsAndCharts
        • Gratings
        • Histogram
        • ImageTools
        • Kernal
        • LLR
        • Log
        • Matrix3D
        • MatrixTools
        • NormalDist
        • Oblong
        • Oblong.OblongClassMap
        • OtsuThresholder
        • OtsuThresholder.Arguments
        • Plot
        • PolarCoordinates
        • PulseTrain
        • RandomNumber
        • RandomVariable
        • Spectrum
        • Statistics
        • StructureTensor
        • StructureTensor.RidgeTensorResult
        • StructureTensor.StructureTensorResult
        • SvdAndPca
        • TemporalMatrix
        • TernaryPlots
        • TestTools
        • TextUtilities
        • WaveletPacketDecomposition
        • WaveletPacketDecomposition.BinVector
        • WaveletTransformContinuous
        • WindowFunctions

    Class ImageSharpExtensions

    Image extension methods.

    Inheritance
    Object
    ImageSharpExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp
    Assembly: Acoustics.Shared.dll
    Syntax
    public static class ImageSharpExtensions

    Fields

    | Improve this Doc View Source

    ColorRegExError

    The color reg ex error.

    Declaration
    public const string ColorRegExError = "Must adhere to a standard hex color code (#00000000)"
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    RegExHexColor

    The reg ex hex color.

    Declaration
    public const string RegExHexColor = "^#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$"
    Field Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    Area(Rectangle)

    Declaration
    public static int Area(this Rectangle rectangle)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Rectangle rectangle
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    AsRect(FontRectangle)

    Declaration
    public static RectangleF AsRect(this FontRectangle rectangle)
    Parameters
    Type Name Description
    SixLabors.Fonts.FontRectangle rectangle
    Returns
    Type Description
    SixLabors.ImageSharp.RectangleF
    | Improve this Doc View Source

    AsRect(PointF, SizeF)

    Declaration
    public static RectangleF AsRect(this PointF point, SizeF size)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.PointF point
    SixLabors.ImageSharp.SizeF size
    Returns
    Type Description
    SixLabors.ImageSharp.RectangleF
    | Improve this Doc View Source

    AsRect((Int32 X, Int32 Y, Int32 Width, Int32 Height))

    Declaration
    public static Rectangle AsRect(this (int X, int Y, int Width, int Height) rect)
    Parameters
    Type Name Description
    (T1, T2, T3, T4)<Int32, Int32, Int32, Int32> rect
    Returns
    Type Description
    SixLabors.ImageSharp.Rectangle
    | Improve this Doc View Source

    ColorFromHexString(String)

    Supports 4 formats: #RRGGBBAA RRGGBBAA #RRGGBB RRGGBB.

    Declaration
    public static Color ColorFromHexString(this string color)
    Parameters
    Type Name Description
    String color

    A textual representation of a color.

    Returns
    Type Description
    SixLabors.ImageSharp.Color

    The Color parsed from the input.

    | Improve this Doc View Source

    Crop<T>(Image<T>, Rectangle)

    Crop an image using a crop Rectangle.

    Declaration
    public static Image<T> Crop<T>(this Image<T> source, Rectangle crop)
        where T : struct, IPixel<T>
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<T> source

    Source image.

    SixLabors.ImageSharp.Rectangle crop

    Crop rectangle.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<T>

    Cropped image.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    CropIntersection<T>(Image<T>, Rectangle)

    Crop an image using a crop Rectangle. If crop spills over source only intersecting areas are returned.

    Declaration
    public static Image<T> CropIntersection<T>(this Image<T> source, Rectangle crop)
        where T : struct, IPixel<T>
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<T> source

    Source image.

    SixLabors.ImageSharp.Rectangle crop

    Crop rectangle.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<T>

    Cropped image.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    CropInverse<T>(Image<T>, Rectangle)

    Draw a crop of an image onto a rectangle surface. Unlike crop, it treats the rectangle coordinates as the source of truth and returns a new image, with a section of source drawn on top.

    Declaration
    public static Image<T> CropInverse<T>(this Image<T> source, Rectangle crop)
        where T : struct, IPixel<T>
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<T> source

    Source image.

    SixLabors.ImageSharp.Rectangle crop

    Crop rectangle.

    Returns
    Type Description
    SixLabors.ImageSharp.Image<T>

    Cropped image.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    DrawImage(Image, Image, Rectangle, Rectangle)

    Declaration
    public static void DrawImage(this Image destination, Image source, Rectangle destinationRectangle, Rectangle sourceRectangle)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image destination
    SixLabors.ImageSharp.Image source
    SixLabors.ImageSharp.Rectangle destinationRectangle
    SixLabors.ImageSharp.Rectangle sourceRectangle
    | Improve this Doc View Source

    DrawLine(IImageProcessingContext, Pen, Int32, Int32, Int32, Int32)

    Declaration
    public static void DrawLine(this IImageProcessingContext context, Pen pen, int x1, int y1, int x2, int y2)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    SixLabors.ImageSharp.Drawing.Processing.Pen pen
    Int32 x1
    Int32 y1
    Int32 x2
    Int32 y2
    | Improve this Doc View Source

    DrawRectangle(IImageProcessingContext, Pen, Int32, Int32, Int32, Int32)

    Declaration
    public static void DrawRectangle(this IImageProcessingContext context, Pen pen, int x, int y, int width, int height)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    SixLabors.ImageSharp.Drawing.Processing.Pen pen
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    | Improve this Doc View Source

    DrawTextSafe(IImageProcessingContext, String, Font, Color, PointF, TextGraphicsOptions)

    Draws text onto an image.

    Declaration
    public static void DrawTextSafe(this IImageProcessingContext context, string text, Font font, Color color, PointF location, TextGraphicsOptions textOptions = null)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    String text
    SixLabors.Fonts.Font font
    SixLabors.ImageSharp.Color color
    SixLabors.ImageSharp.PointF location
    SixLabors.ImageSharp.Drawing.Processing.TextGraphicsOptions textOptions
    Remarks

    Historically this method drew a subset of glyphs if the text was located to the left of the image (i.e. with a negative x coordinate).

    | Improve this Doc View Source

    DrawVerticalText(IImageProcessingContext, String, Font, Color, Point)

    Declaration
    public static void DrawVerticalText(this IImageProcessingContext context, string text, Font font, Color color, Point location)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    String text
    SixLabors.Fonts.Font font
    SixLabors.ImageSharp.Color color
    SixLabors.ImageSharp.Point location
    | Improve this Doc View Source

    FillRectangle(IImageProcessingContext, IBrush, Int32, Int32, Int32, Int32)

    Fill a rectangle with a brush.

    Declaration
    public static void FillRectangle(this IImageProcessingContext context, IBrush brush, int x, int y, int width, int height)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    SixLabors.ImageSharp.Drawing.Processing.IBrush brush
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    Remarks

    Will short-circuit return if height or width less than or equal to zero. This is a "safer" operation.

    | Improve this Doc View Source

    FillWithBlend(IImageProcessingContext, IBrush, IPath[])

    Fills a rectangle with color that blends with the background. If the given brush contains an alpha component, that component will be used as the BlendPercentage value.

    Declaration
    public static void FillWithBlend(this IImageProcessingContext context, IBrush brush, params IPath[] paths)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context

    The drawing context.

    SixLabors.ImageSharp.Drawing.Processing.IBrush brush

    The brush to fill with.

    SixLabors.ImageSharp.Drawing.IPath[] paths

    If specified, a collection of regions to fill.

    Remarks

    Apparently blending pixels with transparency is not supported for Rgb24 images. See the FillDoesNotBlendByDefault.Test smoke test. BUG: Blending does not occur with fill https://github.com/SixLabors/ImageSharp.Drawing/issues/38.

    | Improve this Doc View Source

    FillWithBlend(IImageProcessingContext, IBrush, RectangleF)

    Fills a rectangle with color that blends with the background. If the given brush contains an alpha component, that component will be used as the BlendPercentage value.

    Declaration
    public static void FillWithBlend(this IImageProcessingContext context, IBrush brush, RectangleF region)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context

    The drawing context.

    SixLabors.ImageSharp.Drawing.Processing.IBrush brush

    The brush to fill with.

    SixLabors.ImageSharp.RectangleF region

    A rectangular region to fill.

    Remarks

    Apparently blending pixels with transparency is not supported for Rgb24 images. See the FillDoesNotBlendByDefault.Test smoke test. BUG: Blending does not occur with fill https://github.com/SixLabors/ImageSharp.Drawing/issues/38.

    | Improve this Doc View Source

    GetBrightness(Rgb24)

    Returns the Hue-Saturation-Lightness (HSL) lightness for this Color .

    Declaration
    public static float GetBrightness(this Rgb24 pixel)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.PixelFormats.Rgb24 pixel
    Returns
    Type Description
    Single
    Remarks

    Implementation from https://referencesource.microsoft.com/#System.Drawing/commonui/System/Drawing/Color.cs,23adaaa39209cc1f.

    | Improve this Doc View Source

    Gray(Byte)

    Declaration
    public static Color Gray(byte tone)
    Parameters
    Type Name Description
    Byte tone
    Returns
    Type Description
    SixLabors.ImageSharp.Color
    | Improve this Doc View Source

    MeasureString(IImageProcessingContext, String, Font)

    Declaration
    public static SizeF MeasureString(this IImageProcessingContext _, string text, Font font)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext _
    String text
    SixLabors.Fonts.Font font
    Returns
    Type Description
    SixLabors.ImageSharp.SizeF
    | Improve this Doc View Source

    ModifySpectrogram(Image, Nullable<Int32>, Nullable<Int32>, Boolean)

    Resize sourceImage to match height and width. Removes DC value if removeBottomRow is true.

    Declaration
    [Obsolete("This shim only exists for compatibility. Not needed when ImageSharp replaced System.Drawing")]
    public static Image ModifySpectrogram(this Image sourceImage, int? height, int? width, bool removeBottomRow)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image sourceImage

    The source Image.

    Nullable<Int32> height

    The height.

    Nullable<Int32> width

    The width.

    Boolean removeBottomRow

    True to remove the DC Value (bottom row of pixels).

    Returns
    Type Description
    SixLabors.ImageSharp.Image

    Modified image.

    | Improve this Doc View Source

    NoAA(IImageProcessingContext)

    Declaration
    public static Drawing.NoAA NoAA(this IImageProcessingContext context)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Processing.IImageProcessingContext context
    Returns
    Type Description
    Drawing.NoAA
    | Improve this Doc View Source

    RotateFlip<T>(Image<T>, RotateFlipType)

    Declaration
    public static void RotateFlip<T>(this Image<T> image, RotateFlipType operation)
        where T : struct, IPixel<T>
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<T> image
    RotateFlipType operation
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Save<T>(Image<T>, FileInfo)

    Declaration
    public static void Save<T>(this Image<T> image, FileInfo path)
        where T : struct, IPixel<T>
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<T> image
    FileInfo path
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    ToByteArray(Image, IImageEncoder)

    Convert an image to a byte array.

    Declaration
    public static byte[] ToByteArray(this Image image, IImageEncoder imageFormat)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image image

    The image.

    SixLabors.ImageSharp.Formats.IImageEncoder imageFormat

    The image Format.

    Returns
    Type Description
    Byte[]

    Byte array representing image.

    | Improve this Doc View Source

    ToHexString(Color, Boolean)

    The to hex string.

    Declaration
    public static string ToHexString(this Color color, bool includeAlpha)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Color color

    The color.

    Boolean includeAlpha

    The include alpha.

    Returns
    Type Description
    String

    Color as hex string.

    | Improve this Doc View Source

    ToImage(Byte[])

    Get Image from byte array.

    Declaration
    public static Image ToImage(this byte[] bytes)
    Parameters
    Type Name Description
    Byte[] bytes

    The byte array.

    Returns
    Type Description
    SixLabors.ImageSharp.Image

    Image from byte array.

    | Improve this Doc View Source

    ToPen(Color, Single)

    Declaration
    public static Pen ToPen(this Color color, float width = 1F)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Color color
    Single width
    Returns
    Type Description
    SixLabors.ImageSharp.Drawing.Processing.Pen
    | Improve this Doc View Source

    ToSize(SizeF)

    Declaration
    public static Size ToSize(this SizeF size)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.SizeF size
    Returns
    Type Description
    SixLabors.ImageSharp.Size
    | Improve this Doc View Source

    ToSizeF(FontRectangle)

    Declaration
    public static SizeF ToSizeF(this FontRectangle rectangle)
    Parameters
    Type Name Description
    SixLabors.Fonts.FontRectangle rectangle
    Returns
    Type Description
    SixLabors.ImageSharp.SizeF
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • ColorRegExError
      • RegExHexColor
    • Methods
      • Area(Rectangle)
      • AsRect(FontRectangle)
      • AsRect(PointF, SizeF)
      • AsRect((Int32 X, Int32 Y, Int32 Width, Int32 Height))
      • ColorFromHexString(String)
      • Crop<T>(Image<T>, Rectangle)
      • CropIntersection<T>(Image<T>, Rectangle)
      • CropInverse<T>(Image<T>, Rectangle)
      • DrawImage(Image, Image, Rectangle, Rectangle)
      • DrawLine(IImageProcessingContext, Pen, Int32, Int32, Int32, Int32)
      • DrawRectangle(IImageProcessingContext, Pen, Int32, Int32, Int32, Int32)
      • DrawTextSafe(IImageProcessingContext, String, Font, Color, PointF, TextGraphicsOptions)
      • DrawVerticalText(IImageProcessingContext, String, Font, Color, Point)
      • FillRectangle(IImageProcessingContext, IBrush, Int32, Int32, Int32, Int32)
      • FillWithBlend(IImageProcessingContext, IBrush, IPath[])
      • FillWithBlend(IImageProcessingContext, IBrush, RectangleF)
      • GetBrightness(Rgb24)
      • Gray(Byte)
      • MeasureString(IImageProcessingContext, String, Font)
      • ModifySpectrogram(Image, Nullable<Int32>, Nullable<Int32>, Boolean)
      • NoAA(IImageProcessingContext)
      • RotateFlip<T>(Image<T>, RotateFlipType)
      • Save<T>(Image<T>, FileInfo)
      • ToByteArray(Image, IImageEncoder)
      • ToHexString(Color, Boolean)
      • ToImage(Byte[])
      • ToPen(Color, Single)
      • ToSize(SizeF)
      • ToSizeF(FontRectangle)
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top