Computer Graphics
StablePixel images: creating, filtering, compositing, converting, viewing, and drawing text in stroke fonts
641 nodes in 26 categories
- Ships with
- Divooka ExploreDivooka Compute
- Support tier
- Tier 1 (proposed)
- Package
- Image Processing Standard Library
Image Processing
Pixel images, filters, colour ramps, shapes, stroke fonts and procedural textures.
Standard Library
Numbers, text, dates, arrays, lists, dictionaries, sets and conversions - what nearly every graph needs.
Media Colors
Alice BlueAlice blue, #F0F8FF.Antique WhiteAntique white, #FAEBD7.AquaAqua, #00FFFF.AquamarineAquamarine, #7FFFD4.AzureAzure, #F0FFFF.BeigeBeige, #F5F5DC.BisqueBisque, #FFE4C4.BlackBlack, #000000.Blanched AlmondBlanched almond, #FFEBCD.BlueBlue, #0000FF.Blue VioletBlue violet, #8A2BE2.BrownThis is a very weird reddish color.Burly WoodBurlywood, #DEB887.Cadet BlueCadet blue, #5F9EA0.ChartreuseChartreuse, #7FFF00.ChocolateChocolate, #D2691E.CoralCoral, #FF7F50.Cornflower BlueCornflower blue, #6495ED.CornsilkCornsilk, #FFF8DC.CrimsonCrimson, #DC143C.CyanCyan, #00FFFF, the same color as MediaColors.Aqua.Dark BlueDark blue, #00008B.Dark CyanDark cyan, #008B8B.Dark Golden RodDark goldenrod, #B8860B.Dark GrayDark gray, #A9A9A9.Dark GreenDark green, #006400.Dark GreyDark grey, #A9A9A9, the same color as MediaColors.DarkGray.Dark KhakiDark khaki, #BDB76B.Dark MagentaDark magenta, #8B008B.Dark Olive GreenDark olive green, #556B2F.Dark OrangeDark orange, #FF8C00.Dark OrchidDark orchid, #9932CC.Dark RedDark red, #8B0000.Dark SalmonDark salmon, #E9967A.Dark Sea GreenDark sea green, #8FBC8F.Dark Slate BlueDark slate blue, #483D8B.Dark Slate GrayDark slate gray, #2F4F4F.Dark Slate GreyDark slate grey, #2F4F4F, the same color as MediaColors.DarkSlateGray.Dark TurquoiseDark turquoise, #00CED1.Dark VioletDark violet, #9400D3.Deep PinkDeep pink, #FF1493.Deep Sky BlueDeep sky blue, #00BFFF.Dim GrayDim gray, #696969.Dim GreyDim grey, #696969, the same color as MediaColors.DimGray.Dodger BlueDodger blue, #1E90FF.EmptyEmpty, #000000 with alpha 0: every channel is 0, so this is fully transparent black.Fire BrickFirebrick, #B22222.Floral WhiteFloral white, #FFFAF0.Forest GreenForest green, #228B22.FuchsiaFuchsia, #FF00FF.Fuchsia BlueFuchsia blue, #8E4CC4.GainsboroGainsboro, #DCDCDC.Ghost WhiteGhost white, #F8F8FF.GoldGold, #FFD700.Golden RodGoldenrod, #DAA520.GrayGray, #808080.GreenGreen, #008000.Green YellowGreen yellow, #ADFF2F.GreyGrey, #808080, the same color as MediaColors.Gray.Honey DewHoneydew, #F0FFF0.Hot PinkHot pink, #FF69B4.Indian RedIndian red, #CD5C5C.IndigoIndigo, #4B0082.IvoryIvory, #FFFFF0.KhakiKhaki, #F0E68C.LavenderLavender, #E6E6FA.Lavender BlushLavender blush, #FFF0F5.Lawn GreenLawn green, #7CFC00.Lemon ChiffonLemon chiffon, #FFFACD.Light BlueLight blue, #ADD8E6.Light CoralLight coral, #F08080.Light CyanLight cyan, #E0FFFF.Light Golden Rod YellowLight goldenrod yellow, #FAFAD2.Light GrayLight gray, #D3D3D3.Light GreenLight green, #90EE90.Light GreyLight grey, #D3D3D3, the same color as MediaColors.LightGray.Light PinkLight pink, #FFB6C1.Light SalmonLight salmon, #FFA07A.Light Sea GreenLight sea green, #20B2AA.Light Sky BlueLight sky blue, #87CEFA.Light Slate GrayLight slate gray, #778899.Light Slate GreyLight slate grey, #778899, the same color as MediaColors.LightSlateGray.Light Steel BlueLight steel blue, #B0C4DE.Light YellowLight yellow, #FFFFE0.LimeLime, #00FF00.Lime GreenLime green, #32CD32.LinenLinen, #FAF0E6.MagentaMagenta, #FF00FF, the same color as MediaColors.Fuchsia.MaroonMaroon, #800000.Medium Aqua MarineMedium aquamarine, #66CDAA.Medium BlueMedium blue, #0000CD.Medium OrchidMedium orchid, #BA55D3.Medium PurpleMedium purple, #9370DB.Medium Sea GreenMedium sea green, #3CB371.Medium Slate BlueMedium slate blue, #7B68EE.Medium Spring GreenMedium spring green, #00FA9A.Medium TurquoiseMedium turquoise, #48D1CC.Medium Violet RedMedium violet red, #C71585.Midnight BlueMidnight blue, #191970.Mint CreamMint cream, #F5FFFA.Misty RoseMisty rose, #FFE4E1.MoccasinMoccasin, #FFE4B5.Navajo WhiteNavajo white, #FFDEAD.NavyNavy, #000080.Old LaceOld lace, #FDF5E6.OliveOlive, #808000.Olive DrabOlive drab, #6B8E23.OrangeOrange, #FFA500.Orange RedOrange red, #FF4500.OrchidOrchid, #DA70D6.Pale Golden RodPale goldenrod, #EEE8AA.Pale GreenPale green, #98FB98.Pale TurquoisePale turquoise, #AFEEEE.Pale Violet RedPale violet red, #DB7093.Papaya WhipPapaya whip, #FFEFD5.Peach OrangePeach orange, #FEBD60.Peach PuffPeach puff, #FFDAB9.PeruPeru, #CD853F.PinkPink, #FFC0CB.PlumPlum, #DDA0DD.Powder BluePowder blue, #B0E0E6.PurplePurple, #800080.Rebecca PurpleRebecca purple, #663399.RedRed, #FF0000.Rosy BrownRosy brown, #BC8F8F.Royal BlueRoyal blue, #4169E1.Saddle BrownSaddle brown, #8B4513.SalmonSalmon, #FA8072.Sandy BrownSandy brown, #F4A460.Sea GreenSea green, #2E8B57.Sea ShellSeashell, #FFF5EE.SiennaSienna, #A0522D.SilverSilver, #C0C0C0.Sky BlueSky blue, #87CEEB.Slate BlueSlate blue, #6A5ACD.Slate GraySlate gray, #708090.Slate GreySlate grey, #708090, the same color as MediaColors.SlateGray.SnowSnow, #FFFAFA.Spring GreenSpring green, #00FF7F.Steel BlueSteel blue, #4682B4.Sweet PinkSweet pink, #FEA0A2.TanTan, #D2B48C.TealTeal, #008080.ThistleThistle, #D8BFD8.TomatoTomato, #FF6347.TransparentTransparent, #000000 with alpha 0 (fully transparent), the same color as MediaColors.Empty.TurquoiseTurquoise, #40E0D0.VioletViolet, #EE82EE.WheatWheat, #F5DEB3.WhiteWhite, #FFFFFF.White SmokeWhite smoke, #F5F5F5.YellowYellow, #FFFF00.Yellow GreenYellow green, #9ACD32.
Pixel Image
Make Pixel ImageCloneMakes an independent copy of the image, so editing the copy leaves the original untouched.ColumnsWidth of the image in pixels, that is, the number of pixels in each row.ItemReads or writes a pixel by its position in row-major order, counting from 0 at the top-left corner along each row in turn, so index y * Columns + x is the pixel at column x of row y.PixelsRawThe whole image as tightly packed RGBA bytes, four per pixel, row by row from the top-left corner; see PixelImage.ToTightlyPackedRgbaBytes.RowsHeight of the image in pixels, that is, the number of rows.Get ColorThe color of one pixel, exactly as stored.Get Float ValueThe pixel's value read as a single number from 0 to 1, taken from its red channel alone; useful for heightmaps, masks and other grayscale data.Get Gray ByteThe pixel's value read as grayscale, which for this image is its red channel alone (green, blue and alpha are ignored).Get PixelThe color of one pixel.Get Png BufferSerialize image as raw PNG file buffer.SaveWrites image as PNG to target file path.Save As BmpWrites the image as a Windows bitmap (.bmp).Save As GifWrites the image as GIF.Save As IcoWrites the image as a Windows icon (.ico).Save As JpegWrites the image as baseline JPEG (.jpg).Save As Portable Any MapWrites the image as Netpbm (.ppm/.pgm/.pbm).Save As Portable Float MapWrites the image as Portable FloatMap (.pfm), converting channels to 32-bit float.Save As QoiWrites the image as Quite OK Image (.qoi) - lossless, and much faster to encode than PNG.Save As TextThe image as Base64 text, encoding the same bytes as PixelImage.SerializeIntoBytes, for storing an image inside a text document.Save As TgaWrites the image as Truevision TGA (.tga), run-length encoded by default.Save As Web PWrites the image as WebP (.webp): lossless, with alpha stored natively, unless WebPImageWriterOptions.Lossy asks for libwebp's lossy form.Serialize Into BytesSerializes the image into Divooka's own binary form, as written by PixelImage.WriteToStream.Set PixelReplaces the color of one pixel, changing the image in place.To Bmp BytesEncodes the image as a Windows bitmap (.bmp) file in memory, producing the same bytes PixelImage.SaveAsBmp writes to disk.To Flat ArrayCopies all pixels into a single array, row by row from the top-left corner, so pixel (x, y) is at index y * Columns + x.To Gif BytesEncodes the image as a GIF file in memory, producing the same bytes PixelImage.SaveAsGif writes to disk.To Ico BytesEncodes the image as a Windows icon (.ico) file in memory, producing the same bytes PixelImage.SaveAsIco writes to disk.To Jpeg BytesEncodes the image as a baseline JPEG (.jpg) file in memory, producing the same bytes PixelImage.SaveAsJpeg writes to disk.To Portable Any Map BytesEncodes the image as a Netpbm (.ppm/.pgm/.pbm) file in memory, producing the same bytes PixelImage.SaveAsPortableAnyMap writes to disk.To Portable Float Map BytesEncodes the image as a Portable FloatMap (.pfm) file in memory, producing the same bytes PixelImage.SaveAsPortableFloatMap writes to disk.To Qoi BytesEncodes the image as a Quite OK Image (.qoi) file in memory, producing the same bytes PixelImage.SaveAsQoi writes to disk.To Tga BytesEncodes the image as a Truevision TGA (.tga) file in memory, producing the same bytes PixelImage.SaveAsTga writes to disk.To Tightly Packed Rgba BytesLow-level interop conversion.To Web P BytesEncodes the image as a WebP (.webp) file in memory, producing the same bytes PixelImage.SaveAsWebP writes to disk.Update Color DataReplaces the image's pixel rows with whatever the updater returns, given the current rows.Write BmpEncodes the image as a Windows bitmap (.bmp) file into a stream, starting at its current position; the stream is left open.Write GifEncodes the image as a GIF file into a stream, starting at its current position; the stream is left open.Write IcoEncodes the image as a Windows icon (.ico) file into a stream, starting at its current position; the stream is left open.Write JpegEncodes the image as a baseline JPEG (.jpg) file into a stream, starting at its current position; the stream is left open.Write Portable Any MapEncodes the image as a Netpbm (.ppm/.pgm/.pbm) file into a stream, starting at its current position; the stream is left open.Write Portable Float MapEncodes the image as a Portable FloatMap (.pfm) file into a stream, starting at its current position; the stream is left open.Write QoiEncodes the image as a Quite OK Image (.qoi) file into a stream, starting at its current position; the stream is left open.Write TgaEncodes the image as a Truevision TGA (.tga) file into a stream, starting at its current position; the stream is left open.Write To StreamWrites the image in Divooka's binary form: four 32-bit integers (format version 1, width, height, payload length in bytes) followed by the tightly packed RGBA pixels, row by row from the top.Write Web PEncodes the image as a WebP (.webp) file into a stream, starting at its current position; the stream is left open.Allocate PixelsAllocates a new [row][column] pixel grid of the given size, filled with one color.From Flat ArrayCreates an image from a single array of pixels laid out row by row from the top-left corner, the inverse of PixelImage.ToFlatArray.From Packed Int PixelsCreates an image from rows of 32-bit packed pixels, one uint per pixel, indexed [row][column].From Packed RGBA BytesCreates an image from tightly packed RGBA bytes, four per pixel (red, green, blue, alpha), row by row from the top-left corner with no padding.From UriLoads an image from a file path or a web address, in any format PixelImage.LoadFromFile accepts.Get Temp Image PathInitialize Black ImageInitialize image with some colorInitialize From BytesRebuilds an image from bytes produced by PixelImage.SerializeIntoBytes.Load From FileLoad from PNG file.Load From File BufferLoad From TextRebuilds an image from Base64 text produced by PixelImage.SaveAsText.Load Packed Rgba From File BufferDecodes an image straight to tightly packed RGBA bytes, row zero first, without buildingRead From StreamReads an image written by PixelImage.WriteToStream, leaving the reader just past it.Save RawCompact fast raw data dump that writes a tiny header (magic + version + width + height) followed by tightly packed RGBA bytes for every pixel in row-major order.
Image Processing Routines
Adjust BrightnessReturns a new ImageProcessor with brightness adjusted.Adjust ContrastReturns a new ImageProcessor with contrast adjusted.Adjust SaturationReturns a new ImageProcessor with saturation adjusted.Apply Color RampApply Texture RampApplies a texture ramp using the source preview value as the ramp position.Apply Texture Ramp MappedApplies a texture ramp after remapping normalized source values into a scalar ramp domain.Apply Texture Ramp To DomainApplies a texture ramp by mapping normalized source values to the ramp's own domain.Blend Texture RampBlends a sampled texture ramp over a base image.BlurApplies a masked box blur to the image.Box BlurApplies a (separable) box blur to the image using the specified radius.ContrastAdjusts contrast of the image.Convert Cube Map Image To Equirectangular ImageConvert Equirectangular Image To Cube Map ImageConverts equirectangular map to cubemap.Create Image TransformCreates a tiled transform around the center of a tile.Create Tile TransformCreates a tiled transform.CropReturns a new ImageProcessor containing a cropped region of the image.Get Base64string From Pixel ImageConvert byte array to Base64 stringHslAdjusts HSL components of the image.HsvAdjusts HSV components of the image.Hue ShiftReturns a new ImageProcessor with hue shifted by the specified degrees.Image Texture Tile PreviewCreates a tiled preview image by repeatedly drawing the source image in a grid.InvertReturns a new ImageProcessor where the colors are inverted.MixBlend (Masked)NegateInverts RGB channels of the image.OffsetPaddingPads an image on all four sides.Padding ExtendPads an image on all four sides by extending the nearest existing edge pixels.Remove AlphaRemoves transparency by setting all alpha values to 255.ResizeResizes a Image.PixelImage to the target dimensions.Resize SampledReturns a new Image.PixelImage with the image resized to the specified width and height.ReverseRotateReturns a new ImageProcessor with the image rotated by the specified degrees.Scale DomainSharpenReturns a new ImageProcessor with a sharpen effect applied.Split Image With OverlapThresholdConverts a grayscale image to a binary image using a threshold.Tile TextureTiles Texture Sample into a destination image with an explicit pixel size.Tile Texture By CountTiles Source by U/V repetition counts, deriving the destination size from the source texture size and transform scale.Tile Texture RandomizedTiles Texture Sample into a destination image using stochastic texture tiling.To GrayscaleReturns a new ImageProcessor with the image converted to grayscale.Try Extract QR CodeTry Read QR CodeValidate Source Image For Processing Input
HDR Pixel Image
Make HDR Pixel ImageCloneMakes an independent copy of the image, so editing the copy leaves the original untouched.ColumnsWidth of the image in pixels, that is, the number of pixels in each row.ItemReads or writes a pixel by its position in row-major order, counting from 0 at the top-left corner along each row in turn, so index y * Columns + x is the pixel at column x of row y.PixelsRawThe whole image as raw bytes, four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner; see HdrPixelImage.ToTightlyPackedFloat32LittleEndianBytes.RowsHeight of the image in pixels, that is, the number of rows.Get ColorReturns the fixed default tone-mapped preview color.Get Float ValueReturns fixed-default tone-mapped linear luminance.Get Gray ByteReturns fixed-default tone-mapped linear luminance as an 8-bit value.Get Hdr ColorThe full-precision HDR color of one pixel, exactly as stored.Get Hdr LuminanceReturns luminance directly from stored RGB values without transfer conversion.Get SummaryA one-line description of the image: its size, the lowest and highest value of each channel, and the range of its Rec.HistogramReturns a normalized histogram of stored linear luminance.Is Within Display RangeWhether every RGB sample, scaled by Exposure Multiplier, already liesMaxMinSave As Portable Float MapWrites the image as Portable FloatMap (.pfm).Save As Radiance HdrWrites the image as a Radiance RGBE (.hdr) file, the common format for HDR environment maps; alpha is not stored.Save As TextThe image as Base64 text, encoding the same bytes as HdrPixelImage.SerializeIntoBytes, for storing an image inside a text document.Serialize Into BytesSerializes the image into Divooka's own binary form, as written by HdrPixelImage.WriteToStream, preserving every float exactly.Set Hdr ColorReplaces the HDR color of one pixel, changing the image in place.To Flat ArrayCopies all pixels into a single array, row by row from the top-left corner, so pixel (x, y) is at index y * Columns + x.To Pixel ImageConverts the image to an 8-bit sRGB image for display, choosing the exposure automatically from the image's average brightness and compressing highlights with a luminance-based curve that keeps colors from washing out to white.To Portable Float Map BytesEncodes the image as a Portable FloatMap (.pfm) file in memory, producing the same bytes HdrPixelImage.SaveAsPortableFloatMap writes to disk.To Radiance Hdr BytesEncodes the image as a Radiance RGBE (.hdr) file in memory, producing the same bytes HdrPixelImage.SaveAsRadianceHdr writes to disk.To Tightly Packed Float32little Endian BytesThe whole image as raw bytes: four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner with no header or padding.Transform Hdr DataApplies an element transform atomically using a deep copy.Update Color DataPerforms a deliberately lossy sRGB-preview update and converts the result back into linear HDR data.Update Hdr DataApplies a shape-preserving or shape-changing HDR update from a deep copy.Write Portable Float MapEncodes the image as a Portable FloatMap (.pfm) file into a stream, starting at its current position; the stream is left open.Write Radiance HdrEncodes the image as a Radiance RGBE (.hdr) file into a stream, starting at its current position; the stream is left open.Write Tightly Packed Float32little EndianWrites tightly packed little-endian float RGBA data without a header.Write To StreamThe binary format uses an eight-byte HDR-specific magic, version, dimensions, Int64 payload length, then row-wise little-endian IEEE-754 RGBA floats.Allocate PixelsAllocates a new [row][column] HDR pixel grid of the given size, optionally filled with one color.From Flat ArrayCreates an HDR image from a single array of pixels laid out row by row from the top-left corner, the inverse of HdrPixelImage.ToFlatArray.From Pixel ImageConverts an 8-bit image to HDR, turning each byte into a 0-1 value and, by default, decoding the sRGB curve so the result is in linear light.From Tightly Packed Float32little Endian BytesCreates an HDR image from raw bytes holding four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner with no header or padding.Initialize Black ImageCreates an HDR image of the given size filled with opaque black (red, green and blue 0, alpha 1).Initialize From BytesRebuilds an image from bytes produced by HdrPixelImage.SerializeIntoBytes.Initialize ImageCreates an HDR image of the given size with every pixel set to one color.Load From FileLoads any format accepted by StbImageSharp's floating-point decoder.Load From File BufferDecodes an image file held in memory into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.Load From StreamDecodes an image from a stream into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.Load From TextRebuilds an image from Base64 text produced by HdrPixelImage.SaveAsText.Read From StreamReads an image written by HdrPixelImage.WriteToStream, leaving the reader just past it.
Color
AlphaOpacity (Transparency), higher value means more opaque.BlueBlue channel, from 0 (none) to 255 (full).GreenGreen channel, from 0 (none) to 255 (full).RedRed channel, from 0 (none) to 255 (full).Make ColorCreates transparent black: every channel, alpha included, is 0.EqualsWhether both colors have exactly the same red, green, blue and alpha bytes.Alpha FloatThe opacity as a fraction from 0 (fully transparent) to 1 (fully opaque).Blue FloatThe blue channel as a fraction from 0 to 1 (the byte divided by 255).Green FloatThe green channel as a fraction from 0 to 1 (the byte divided by 255).Red FloatThe red channel as a fraction from 0 to 1 (the byte divided by 255).Get Hash CodeA hash code built from all four channels, consistent with ColorElement.Equals.Save As TextThe color as text, in the same "#RRGGBBAA" hex form as ColorElement.ToString.To Console ColorConverts this Color instance to the closest matching ConsoleColor.To GrayscaleA standard interpretation of (floating point) grayscale.To HexConvert color to RGB hex representation.To LuminanceThe perceived brightness of the color as a gray level, weighting red, green and blue as 0.299, 0.587 and 0.114 (Rec.To Red GrayTreats the color as a grayscale value by taking its red channel alone, the convention this library uses for single-channel images.To StringReturns a hexadecimal string representation of the Image.ColorElement.To Tuple3The red, green and blue bytes (0-255) as a tuple, dropping alpha.To Tuple4The red, green, blue and alpha bytes (0-255) as a tuple.To Vector3The red, green and blue channels as fractions from 0 to 1 in X, Y and Z, dropping alpha.To Vector4The red, green, blue and alpha channels as fractions from 0 to 1 in X, Y, Z and W.With AlphaReturns a copy of this color with the same red, green and blue but a different opacity.Write To StreamWrites the color as four raw bytes, red, green, blue then alpha.From ArgbCreates a color from alpha, red, green and blue bytes, given alpha first.From Console ColorConverts a ConsoleColor to a Color instance using a fixed mapping.From RgbCreates a fully opaque color from red, green and blue bytes.From Sc RgbFrom Unit FloatGet Color NullableGets color from serialization.InterpLoad From TextReads a color from text, accepting the same hex codes and color names as ColorElement.Parse.Multiply Rgb Preserve AlphaBrightens or darkens a color by multiplying red, green and blue by a factor, keeping its alpha unchanged.Addition OperationAdds two colors channel by channel for red, green and blue; the result is always opaque.Equality OperationWhether two colors have exactly the same red, green, blue and alpha bytes.Inequality OperationWhether two colors differ in any of red, green, blue or alpha.Multiply OperationScales red, green and blue by a factor, truncating each result to a byte; the result is always opaque.Subtraction OperationSubtracts one color from another channel by channel for red, green and blue; the result is always opaque.ParseParses a string representation of a color and returns the corresponding Image.ColorElement instance.Parse Hex ARGBParses a hexadecimal string representation of a color in ARGB order.Parse Hex RGBAParses a hexadecimal string representation of a color in RGBA order.Read From StreamReads a color written by ColorElement.WriteToStream: four bytes, red, green, blue then alpha.SerializeNullable serialization helper.Try ParseTries to read a color from text, either a hex code starting with '#' or the name of a color in Image.MediaColors, without throwing on bad input.Try Parse Hex ARGBTries to read a hex color in alpha, red, green, blue order (the order XAML color codes use), without throwing on bad input.Try Parse Hex RGBATries to read a hex color in red, green, blue, alpha order, without throwing on bad input.
16-bit Grayscale Image
Max ValueMin ValueMake 16-bit Grayscale ImageCloneGet ColumnsGet DataGet ItemGet RawGet RowsGet ColorGet Float ValueGet Gray ByteGet NormalizedGet Png BufferGet ValueInitialize From BytesLoad From TextRead From StreamSaveSave As TextSave PngSerialize Into BytesSet ItemSet NormalizedSet ValueTo Flat ArrayTo Pixel ImageTo Tightly Packed U Int16little Endian BytesUpdate Color DataUpdate DataWrite To StreamAllocateByte To U Int16Color To Grayscale16From Flat ArrayFrom Pixel ImageFrom Tightly Packed U Int16little Endian BytesInitialize Black ImageInitialize ImageInitialize White ImageLoad From FileLoad PngNormalized To U Int16U Int16to ByteU Int16to Normalized
Painting Program
Make Painting ProgramCreates a program that starts from an existing image.ClearDraw ArrowDraw CircleDraw Circle StrokeDraw CurveDraw Curve StrokeDraw LineDraw PointDraw RectangleDraw Rectangle StrokeDraw StarEnable AntialiasInnerThe program this one forwards to, for callers moving off SkiaSharp types.Get ImagePop TransformPush TransformReset TransformRotateSaveExplicit side-effect boundary.ScaleSet Fill ColorSet Stroke ColorSet Stroke WidthSkewTranslateWith Transform
Procedural Texture Generator
Convert Sample CoordinatesFrom pixel space to ProceduralNoiseSamplingSettings.TargetCoordinateSpace.Create Bark (Wood Plank)Bark-like vertical ridges with warped grooves, fibers, cracks, and chunky breakup.Create Billow PatternCreates billow noise, which emphasizes soft cloud-like blobs.Create Brick TextureCreate Cellular PatternCreates a cellular / Worley-style texture.Create CheckerboardCreate Contour LinesThresholded fractal height field converted into contour lines.Create Cross HatchCreate Dashed HatchCreate Domain Warped PatternCreates a domain-warped noise texture.Create DotsCreate Fractal PatternCreates a standard fractal texture such as FBm, Ridged, or PingPong.Create GridCreate Halftone DotsAnalytic halftone dots driven by radial or linear gradient.Create HatchCreate Herringbone (Brick)Classic 90-degree herringbone pavers / brick layout.Create Hex GridPointy-top hex grid.Create JuliaCreates a Julia fractal texture using escape-time iteration.Create MandelbrotCreates a Mandelbrot fractal texture using escape-time iteration.Create Marble PatternCreates a marble-like texture by modulating sinusoidal bands with noise.Create Masonry (Brick)Stack bond / running bond / basket weave masonry.Create MazeCreate Noise PatternCreates a basic FastNoiseLite texture with no fractal stacking.Create Normal MapConverts a grayscale heightmap into a tangent-space normal map.Create Parquet (Wood Plank)Wood parquet: straight, basket weave, or herringbone.Create PlaidMulti-stripe plaid / tartan.Create Radial BurstCreate RingsCreate ScallopsFish scales / scallops.Create Stone Blocks (Brick)Irregular ashlar / stone block pattern using deterministic hashed row and block splits.Create Threshold MaskCreates a binary threshold mask from a height-like texture.Create Turbulence PatternCreates turbulence noise, commonly used for masks and distortion fields.Create Voronoi CracksCrack network using distance difference between nearest and second-nearest jittered cell points.Create WeaveOver-under woven fabric pattern with simple shading.Create White NoiseCreates white noise using a deterministic PRNG.Create Wood (Wood Plank)Creates a wood-ring texture.Create Wood Detailed (Wood Plank)Create detailed wood texture.Create Zig ZagGenerate Advanced Fractal TextureCreates a Terragen Power-Fractal-like color texture with rough high octaves and spatially clustered detail.Generate Procedural SkyAggregate entry.Map Voxel SceneProduces an orthographic image projection of a voxel scene along one of its six axis directions.RepeatVisualize NoiseQuick helper to visualize a given noise.
Image Processing Filters
Adaptive ThresholdApplies adaptive thresholding to luminance.Bilateral FilterApplies bilateral filtering.Canny (Edge Detection)Canny edge detection on luminance: a binary image, white on the one-pixel edges.ClaheApplies CLAHE contrast enhancement to luminance.Convert Color SpaceConverts the image to another color representation.Detail EnhanceEnhances local detail and contrast.DilateDilates bright regions.Directional Gradient SmudgeHeight map should drive the direction.Edge Preserving FilterEdge-preserving smoothing.EmbossEqualize HistogramApplies global histogram equalization to luminance.ErodeErodes bright regions.Find ContoursFinds contours from a thresholded luminance image and draws them over the source.Floyd Steinberg DitherGaussian BlurApplies Gaussian blur.Gradient SmudgeHeight map should drive the directionHalftone FilterApplies a monochrome halftone effect using circular dots.HD ScaleSpeedy detail preserving upscale through resampling with Lanczos-4.HD Scale FitUpscales the image to fit within the target size using Lanczos-4 resampling while preserving aspect ratio.Hough CirclesDetects circles with the gradient Hough transform and draws them over the source.Hough Line SegmentsDetects line segments with the probabilistic Hough transform on Canny edges and draws them over the source.LaplacianApplies Laplacian edge detection to luminance.Median BlurApplies median blur.MorphologyApplies a morphology operation.Morphology GradientApplies morphology gradient.PaintPencil Sketch EffectProduces a pencil-sketch effect.PixelateScharrApplies Scharr edge detection to luminance.SepiaSobelApplies Sobel edge detection to luminance.Sobel (Edge Detection)StylizationStylization: painterly, cartoon-like abstraction that smooths low-contrast regions and darkens strong structure.ThresholdApplies simple thresholding to luminance.To Distance FieldVignetteWarp AffineApplies affine rotation around image center.Warp PerspectiveApplies perspective warp from four source corners to four destination corners.
Simple Shape Images
Draw Circle ShapeDraws a circle with the specified radius.Draw Cone GeometryDraw Cube GeometryDraw Cuboid GeometryDraw CurvesDraws (closed) curves/polygons.Draw Cylinder GeometryDraw Distance FieldsDraws shapes filled as distance fields.Draw Ellipse ShapeDraws an ellipse within the specified width and height.Draw Equilateral Triangle ShapeDraws an equilateral triangle within the specified dimensions and optionally labels edges and angles.Draw Hexagon ShapeDraws a regular hexagon inscribed in a circle with the specified radius.Draw Line ShapeDraws a line segment.Draw Oval ShapeDraws an oval with the specified major and minor radii.Draw Pentagon ShapeDraws a regular pentagon inscribed in a circle with the specified radius.Draw Polygon ShapeDraws a regular polygon with the specified number of sides inscribed within the given width and height.Draw Pyramid GeometryDraw Quadrilateral ShapeDraws a quadrilateral with the specified width, height, and slanted angle.Draw Rectangle ShapeDraws a rectangle with the specified width and height.Draw Right Triangle ShapeDraws a right triangle with the specified dimensions and optional edge and angle labels.Draw Sphere GeometryDraw a lit 3D sphere.Draw Square ShapeDraws a square with the specified size.Draw Star ShapeDraws a star polygon.Draw TextHandles both single line and multi lineDraw Triangle ShapeDraws a triangle with the specified width and height.
Color Ramp
Default Heat RampFive-stop heat-map ramp on 0-1, running dark blue, blue, green, yellow, red.Default Terrain RampSeven-stop terrain ramp on 0-1: deep water, shallow water, sand, grass, brown earth, grey rock and snow.Natural CoolNine-stop ramp on 0-1 of muted natural tones, from near-black green through olive and brown to pale sand, with cooler greens in the shadows than ColorRamp.NaturalDirt.Natural DirtNine-stop ramp on 0-1 of earthy tones, from near-black through olive and brown to pale sand; a slightly warmer variant of ColorRamp.NaturalCool.Make Color RampCreates a ramp from stops given in any order; they are sorted by position.CountNumber of stops; always at least one.Domain EndPosition of the last (highest) stop.Domain LengthDistance from the first stop to the last; zero for a single-stop ramp.Domain StartPosition of the first (lowest) stop.Is NormalizedTrue when the stops run exactly from 0 to 1.ItemThe stop at the given index, counting in ascending order of position.StopsThe stops, sorted by ascending position.Get EnumeratorEnumerates the stops in ascending order of position.To StringWrites the ramp as text in the ColorRampTextStyle.ColorAtStop style, one stop per line, which ColorRamp.Parse reads back.To TextConvert color ramp to parsable text format.Create Default Water Surface Color RampDefault water-like ramp for normal-shaded heightfield rendering.Create Shallow Water Surface Color RampShallow water-like ramp for normal-shaded heightfield rendering.Default Height Level Color RampsA reasonable stylized 2D-ish default:ParseParses line-based color ramp text.Try ParseParses ramp text in the same formats as ColorRamp.Parse, returning false instead of throwing when the text is empty, malformed or describes an invalid ramp.
Vector 2D
XThe X coordinate.YThe Y coordinate.ZeroGets a Types.Vector2D that has all of its values set to zero.Make Vector 2DInitializes a new instance of the Types.Vector2D struct with the specified coordinates.LengthGets the length (magnitude) of the vector.Length SquaredCalculates the square of the vector's length.To StringDistance SquaredCalculates the square of the distance between two vectors.DotCalculates the dot product of two vectors.Addition OperationAdds two Types.Vector2D instances.Division OperationDivides a Types.Vector2D by a scalar.Equality OperationCompares two Types.Vector2D instances for equality.Inequality OperationCompares two Types.Vector2D instances for inequality.Multiply OperationMultiplies a Types.Vector2D by a scalar.Subtraction OperationSubtracts one Types.Vector2D from another.Unary Negation OperationNegates a Types.Vector2D.Parse Tuple
Nib
Fountain PenA broad italic nib: wide, strongly modulated, tapering to a point at both ends.PencilA pencil: narrow, barely modulated, and blunt at both ends.Make NibAngleAngle of the flat edge, radians.Entry TaperArc length over which the stroke swells at pen-down, px.Exit TaperArc length over which the stroke thins at pen-up, px.Min WidthThickness kept even when travelling along the edge, px.Taper FloorHow far the taper thins to (0 = needle point, 1 = no taper).WidthFull width of the nib edge, px.With ScaleThe same nib at another size: every length scales, the angle and the taper floor do not.
Stroke Font
Baseline UnitBaseline offset in raw Hershey units.Cap HeightFont units from baseline to cap line.CharactersEvery character this face has a glyph for.Is CursiveTrue for connected cursive faces, where glyphs are drawn to join up.ItemThe glyph for a character, or null if this face has none.NameWhat this face is called.Get Or FallbackThe glyph for a character, falling back to this face's '?' and then to a blank of the space's width.By NameOne of the embedded faces by StrokeFont.Name, or null if no face carries that name.From FileReads a face from a `.jhf` file on disk, for the stroke and engraving faces this package doesAllThe three faces embedded in this package.PrintHershey Roman Simplex: unjoined print, which is what a plotter or an engraver usually wants.ScriptHershey Script: a light cursive hand, the one a handwriting animation usually wants.Script ComplexHershey Script Complex: the same hand with more strokes per glyph, so a heavier, more formal one.ParseParses the text of a `.jhf` file into a face.
Color Stop
Make Color StopOne colour stop on a Extensions.ColorRamp: the colour the ramp takes at a given position.DeconstructEqualsColorThe colour at this position; alpha is kept.PositionNormalized position; Generally between 0 and 1; Notice for engineering "strength" visualization where heatmap represents specific value ranges, the domain can be arbitrary.Get Hash CodeTo StringOp EqualityOp Inequality
Pixel Image Factory
Fill ImageFill Pixel Image With ColorGenerate Domain Warped Noise ImageGenerate Fractal Noise Color ImageGenerate color image using Fractal Brownian Motion (fBm).Fractal High Low PatternGenerate Perlin Noise Color ImageGenerate color image using Perlin noise.Generate Ridged Multifractal Color ImageGenerate color image using Ridged Multifractal noise.Sample FieldPopulate image from generator function.
Custom Data Array Entries
Create Boolean ArraysAllows defining an array of boolean values by hand.Create Double Number ArraysAllows defining an array of double numbers by hand.Create Floating Number ArraysAllows defining an array of floating numbers by hand.Create Integer Number ArraysAllows defining an array of integer numbers by hand.Create Single Line String ArraysAllows defining an array of single line strings by hand.Create Vector2d ArraysAllows defining an array of Vector2d values by hand.Create Vector3d ArraysAllows defining an array of Vector3d values by hand.
Pixel Image Editor Enhancement
Data Entry Curves
Tone Mapper
To Pixel Image (Drago)Drago's adaptive logarithmic mapping (2003): luminance compressed by a logarithm whose base moves from 2 in the shadows to 10 in the highlights, the bias choosing how quickly.To Pixel Image (Durand)Durand and Dorsey's fast bilateral filtering (2002): the log-luminance split by a bilateral filter into a base layer, whose range is compressed to Contrast, and the detail, kept.To Pixel Image (Mantiuk)Mantiuk's perceptual contrast mapping (2006): the log-luminance's contrast, at every scale of a pyramid, compressed by Scale in a perceptual response and the luminance solved back from it.To Pixel Image (Reinhard)Reinhard's photographic tone reproduction (2005): each channel compressed by v / (v + adaptation), the adaptation level a blend of the pixel's own colour and luminance and of the image's means.