元编程参考文档

图形图像

稳定

像素图像:创建、滤波、合成、转换和查看,以及用单线字体绘制文字

Methodox Wiki 上的使用指南

26 个类别,共 641 个节点

所属发行版
元编程(教育版)元编程(专业版)
支持等级
第 1 级(拟定)
所属包
图像处理 标准库
图像处理

像素图像、滤镜、色带、形状、笔画字体与程序化纹理。

标准库

数字、文本、日期、数组、列表、字典、集合与类型转换——几乎每张图都需要它们。

命名颜色

爱丽丝蓝Alice blue, #F0F8FF.古董白Antique white, #FAEBD7.水绿色Aqua, #00FFFF.碧绿色Aquamarine, #7FFFD4.蔚蓝色Azure, #F0FFFF.米色Beige, #F5F5DC.陶坯黄Bisque, #FFE4C4.黑色Black, #000000.杏仁白Blanched almond, #FFEBCD.蓝色Blue, #0000FF.蓝紫色Blue violet, #8A2BE2.棕色This is a very weird reddish color.硬木色Burlywood, #DEB887.军服蓝Cadet blue, #5F9EA0.查特酒绿Chartreuse, #7FFF00.巧克力色Chocolate, #D2691E.珊瑚色Coral, #FF7F50.矢车菊蓝Cornflower blue, #6495ED.玉米丝色Cornsilk, #FFF8DC.绯红色Crimson, #DC143C.青色Cyan, #00FFFF, the same color as MediaColors.Aqua.深蓝色Dark blue, #00008B.深青色Dark cyan, #008B8B.深金菊黄Dark goldenrod, #B8860B.深灰色Dark gray, #A9A9A9.深绿色Dark green, #006400.深灰色(Grey)Dark grey, #A9A9A9, the same color as MediaColors.DarkGray.深卡其色Dark khaki, #BDB76B.深洋红色Dark magenta, #8B008B.深橄榄绿Dark olive green, #556B2F.深橙色Dark orange, #FF8C00.深兰紫色Dark orchid, #9932CC.深红色Dark red, #8B0000.深鲑红Dark salmon, #E9967A.深海绿Dark sea green, #8FBC8F.深岩蓝Dark slate blue, #483D8B.深岩灰Dark slate gray, #2F4F4F.深岩灰(Grey)Dark slate grey, #2F4F4F, the same color as MediaColors.DarkSlateGray.深绿松石色Dark turquoise, #00CED1.深紫罗兰色Dark violet, #9400D3.深粉色Deep pink, #FF1493.深天蓝Deep sky blue, #00BFFF.暗灰色Dim gray, #696969.暗灰色(Grey)Dim grey, #696969, the same color as MediaColors.DimGray.道奇蓝Dodger blue, #1E90FF.空颜色Empty, #000000 with alpha 0: every channel is 0, so this is fully transparent black.耐火砖红Firebrick, #B22222.花白色Floral white, #FFFAF0.森林绿Forest green, #228B22.紫红色Fuchsia, #FF00FF.紫红蓝Fuchsia blue, #8E4CC4.庚斯博罗灰Gainsboro, #DCDCDC.幽灵白Ghost white, #F8F8FF.金色Gold, #FFD700.金菊黄Goldenrod, #DAA520.灰色Gray, #808080.绿色Green, #008000.绿黄色Green yellow, #ADFF2F.灰色(Grey)Grey, #808080, the same color as MediaColors.Gray.蜜瓜绿Honeydew, #F0FFF0.亮粉色Hot pink, #FF69B4.印度红Indian red, #CD5C5C.靛蓝色Indigo, #4B0082.象牙白Ivory, #FFFFF0.卡其色Khaki, #F0E68C.薰衣草紫Lavender, #E6E6FA.薰衣草红Lavender blush, #FFF0F5.草坪绿Lawn green, #7CFC00.柠檬绸色Lemon chiffon, #FFFACD.浅蓝色Light blue, #ADD8E6.浅珊瑚色Light coral, #F08080.浅青色Light cyan, #E0FFFF.浅金菊黄Light goldenrod yellow, #FAFAD2.浅灰色Light gray, #D3D3D3.浅绿色Light green, #90EE90.浅灰色(Grey)Light grey, #D3D3D3, the same color as MediaColors.LightGray.浅粉色Light pink, #FFB6C1.浅鲑红Light salmon, #FFA07A.浅海绿Light sea green, #20B2AA.浅天蓝Light sky blue, #87CEFA.浅岩灰Light slate gray, #778899.浅岩灰(Grey)Light slate grey, #778899, the same color as MediaColors.LightSlateGray.浅钢蓝Light steel blue, #B0C4DE.浅黄色Light yellow, #FFFFE0.酸橙绿Lime, #00FF00.柠檬绿Lime green, #32CD32.亚麻色Linen, #FAF0E6.洋红色Magenta, #FF00FF, the same color as MediaColors.Fuchsia.栗色Maroon, #800000.中碧绿色Medium aquamarine, #66CDAA.中蓝色Medium blue, #0000CD.中兰紫色Medium orchid, #BA55D3.中紫色Medium purple, #9370DB.中海绿Medium sea green, #3CB371.中岩蓝Medium slate blue, #7B68EE.中春绿Medium spring green, #00FA9A.中绿松石色Medium turquoise, #48D1CC.中紫红色Medium violet red, #C71585.午夜蓝Midnight blue, #191970.薄荷奶油色Mint cream, #F5FFFA.雾玫瑰色Misty rose, #FFE4E1.鹿皮色Moccasin, #FFE4B5.纳瓦霍白Navajo white, #FFDEAD.海军蓝Navy, #000080.旧蕾丝色Old lace, #FDF5E6.橄榄色Olive, #808000.橄榄褐Olive drab, #6B8E23.橙色Orange, #FFA500.橙红色Orange red, #FF4500.兰紫色Orchid, #DA70D6.苍金菊黄Pale goldenrod, #EEE8AA.苍绿色Pale green, #98FB98.苍绿松石色Pale turquoise, #AFEEEE.苍紫红色Pale violet red, #DB7093.番木瓜色Papaya whip, #FFEFD5.桃橙色Peach orange, #FEBD60.桃色Peach puff, #FFDAB9.秘鲁色Peru, #CD853F.粉色Pink, #FFC0CB.李子色Plum, #DDA0DD.粉蓝色Powder blue, #B0E0E6.紫色Purple, #800080.丽贝卡紫Rebecca purple, #663399.红色Red, #FF0000.玫瑰棕Rosy brown, #BC8F8F.宝蓝色Royal blue, #4169E1.马鞍棕Saddle brown, #8B4513.鲑红色Salmon, #FA8072.沙棕色Sandy brown, #F4A460.海绿色Sea green, #2E8B57.贝壳白Seashell, #FFF5EE.赭色Sienna, #A0522D.银色Silver, #C0C0C0.天蓝色Sky blue, #87CEEB.岩蓝色Slate blue, #6A5ACD.岩灰色Slate gray, #708090.岩灰色(Grey)Slate grey, #708090, the same color as MediaColors.SlateGray.雪白色Snow, #FFFAFA.春绿色Spring green, #00FF7F.钢蓝色Steel blue, #4682B4.甜粉色Sweet pink, #FEA0A2.茶色Tan, #D2B48C.蓝绿色Teal, #008080.蓟紫色Thistle, #D8BFD8.番茄红Tomato, #FF6347.透明Transparent, #000000 with alpha 0 (fully transparent), the same color as MediaColors.Empty.绿松石色Turquoise, #40E0D0.紫罗兰色Violet, #EE82EE.小麦色Wheat, #F5DEB3.白色White, #FFFFFF.白烟色White smoke, #F5F5F5.黄色Yellow, #FFFF00.黄绿色Yellow green, #9ACD32.

像素图像

像素图像复制图像Makes an independent copy of the image, so editing the copy leaves the original untouched.列数Width of the image in pixels, that is, the number of pixels in each row.像素Reads 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.像素原始数据The whole image as tightly packed RGBA bytes, four per pixel, row by row from the top-left corner; see PixelImage.ToTightlyPackedRgbaBytes.行数Height of the image in pixels, that is, the number of rows.获取颜色The color of one pixel, exactly as stored.获取浮点值The 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.获取灰度字节The pixel's value read as grayscale, which for this image is its red channel alone (green, blue and alpha are ignored).获取像素The color of one pixel.获取 PNG 缓冲区Serialize image as raw PNG file buffer.保存Writes image as PNG to target file path.保存为 BMPWrites the image as a Windows bitmap (.bmp).保存为 GIFWrites the image as GIF.保存为 ICOWrites the image as a Windows icon (.ico).保存为 JPEGWrites the image as baseline JPEG (.jpg).保存为 PNMWrites the image as Netpbm (.ppm/.pgm/.pbm).保存为 PFMWrites the image as Portable FloatMap (.pfm), converting channels to 32-bit float.保存为 QOIWrites the image as Quite OK Image (.qoi) - lossless, and much faster to encode than PNG.保存为文本The image as Base64 text, encoding the same bytes as PixelImage.SerializeIntoBytes, for storing an image inside a text document.保存为 TGAWrites the image as Truevision TGA (.tga), run-length encoded by default.保存为 WebPWrites the image as WebP (.webp): lossless, with alpha stored natively, unless WebPImageWriterOptions.Lossy asks for libwebp's lossy form.序列化为字节Serializes the image into Divooka's own binary form, as written by PixelImage.WriteToStream.设置像素Replaces the color of one pixel, changing the image in place.转为 BMP 字节Encodes the image as a Windows bitmap (.bmp) file in memory, producing the same bytes PixelImage.SaveAsBmp writes to disk.转为平铺数组Copies all pixels into a single array, row by row from the top-left corner, so pixel (x, y) is at index y * Columns + x.转为 GIF 字节Encodes the image as a GIF file in memory, producing the same bytes PixelImage.SaveAsGif writes to disk.转为 ICO 字节Encodes the image as a Windows icon (.ico) file in memory, producing the same bytes PixelImage.SaveAsIco writes to disk.转为 JPEG 字节Encodes the image as a baseline JPEG (.jpg) file in memory, producing the same bytes PixelImage.SaveAsJpeg writes to disk.转为 PNM 字节Encodes the image as a Netpbm (.ppm/.pgm/.pbm) file in memory, producing the same bytes PixelImage.SaveAsPortableAnyMap writes to disk.转为 PFM 字节Encodes the image as a Portable FloatMap (.pfm) file in memory, producing the same bytes PixelImage.SaveAsPortableFloatMap writes to disk.转为 QOI 字节Encodes the image as a Quite OK Image (.qoi) file in memory, producing the same bytes PixelImage.SaveAsQoi writes to disk.转为 TGA 字节Encodes the image as a Truevision TGA (.tga) file in memory, producing the same bytes PixelImage.SaveAsTga writes to disk.转为紧凑 RGBA 字节Low-level interop conversion.转为 WebP 字节Encodes the image as a WebP (.webp) file in memory, producing the same bytes PixelImage.SaveAsWebP writes to disk.更新颜色数据Replaces the image's pixel rows with whatever the updater returns, given the current rows.写入 BMPEncodes the image as a Windows bitmap (.bmp) file into a stream, starting at its current position; the stream is left open.写入 GIFEncodes the image as a GIF file into a stream, starting at its current position; the stream is left open.写入 ICOEncodes the image as a Windows icon (.ico) file into a stream, starting at its current position; the stream is left open.写入 JPEGEncodes the image as a baseline JPEG (.jpg) file into a stream, starting at its current position; the stream is left open.写入 PNMEncodes the image as a Netpbm (.ppm/.pgm/.pbm) file into a stream, starting at its current position; the stream is left open.写入 PFMEncodes the image as a Portable FloatMap (.pfm) file into a stream, starting at its current position; the stream is left open.写入 QOIEncodes the image as a Quite OK Image (.qoi) file into a stream, starting at its current position; the stream is left open.写入 TGAEncodes the image as a Truevision TGA (.tga) file into a stream, starting at its current position; the stream is left open.写入流Writes 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.写入 WebPEncodes the image as a WebP (.webp) file into a stream, starting at its current position; the stream is left open.分配像素Allocates a new [row][column] pixel grid of the given size, filled with one color.从平铺数组生成Creates an image from a single array of pixels laid out row by row from the top-left corner, the inverse of PixelImage.ToFlatArray.从打包整数像素生成Creates an image from rows of 32-bit packed pixels, one uint per pixel, indexed [row][column].从打包 RGBA 字节生成Creates 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.从 URI 加载Loads an image from a file path or a web address, in any format PixelImage.LoadFromFile accepts.获取临时图像路径初始化黑色图像Initialize image with some color从字节初始化Rebuilds an image from bytes produced by PixelImage.SerializeIntoBytes.从文件加载Load from PNG file.从文件缓冲区加载从文本加载Rebuilds an image from Base64 text produced by PixelImage.SaveAsText.从文件缓冲区加载打包 RGBADecodes an image straight to tightly packed RGBA bytes, row zero first, without building从流读取Reads an image written by PixelImage.WriteToStream, leaving the reader just past it.保存原始数据Compact 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.

图像处理

调整亮度Returns a new ImageProcessor with brightness adjusted.调整对比度Returns a new ImageProcessor with contrast adjusted.调整饱和度Returns a new ImageProcessor with saturation adjusted.应用颜色渐变应用纹理渐变Applies a texture ramp using the source preview value as the ramp position.按映射应用纹理渐变Applies a texture ramp after remapping normalized source values into a scalar ramp domain.按区间应用纹理渐变Applies a texture ramp by mapping normalized source values to the ramp's own domain.混合纹理渐变Blends a sampled texture ramp over a base image.模糊Applies a masked box blur to the image.方框模糊Applies a (separable) box blur to the image using the specified radius.对比度Adjusts contrast of the image.立方体贴图转等距柱状投影图像等距柱状投影图像转立方体贴图Converts equirectangular map to cubemap.创建图像变换Creates a tiled transform around the center of a tile.创建平铺变换Creates a tiled transform.裁剪Returns a new ImageProcessor containing a cropped region of the image.从像素图像获取 Base64 文本Convert byte array to Base64 stringHSL 调整Adjusts HSL components of the image.HSV 调整Adjusts HSV components of the image.色相偏移Returns a new ImageProcessor with hue shifted by the specified degrees.图像纹理平铺预览Creates a tiled preview image by repeatedly drawing the source image in a grid.反相Returns a new ImageProcessor where the colors are inverted.混合混合(带蒙版)取反Inverts RGB channels of the image.偏移填充边距Pads an image on all four sides.扩展填充边距Pads an image on all four sides by extending the nearest existing edge pixels.移除透明通道Removes transparency by setting all alpha values to 255.调整大小Resizes a Image.PixelImage to the target dimensions.按采样方式调整大小Returns a new Image.PixelImage with the image resized to the specified width and height.翻转旋转Returns a new ImageProcessor with the image rotated by the specified degrees.缩放区间锐化Returns a new ImageProcessor with a sharpen effect applied.带重叠拆分图像阈值化Converts a grayscale image to a binary image using a threshold.平铺纹理Tiles Texture Sample into a destination image with an explicit pixel size.按数量平铺纹理Tiles Source by U/V repetition counts, deriving the destination size from the source texture size and transform scale.随机平铺纹理Tiles Texture Sample into a destination image using stochastic texture tiling.转为灰度Returns a new ImageProcessor with the image converted to grayscale.尝试提取二维码尝试读取二维码验证源图像是否可处理

HDR 像素图像

HDR 像素图像复制图像Makes an independent copy of the image, so editing the copy leaves the original untouched.列数Width of the image in pixels, that is, the number of pixels in each row.像素Reads 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.像素原始数据The 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.行数Height of the image in pixels, that is, the number of rows.获取颜色Returns the fixed default tone-mapped preview color.获取浮点值Returns fixed-default tone-mapped linear luminance.获取灰度字节Returns fixed-default tone-mapped linear luminance as an 8-bit value.获取 HDR 颜色The full-precision HDR color of one pixel, exactly as stored.获取 HDR 亮度Returns luminance directly from stored RGB values without transfer conversion.获取摘要A one-line description of the image: its size, the lowest and highest value of each channel, and the range of its Rec.直方图Returns a normalized histogram of stored linear luminance.是否在显示范围内Whether every RGB sample, scaled by Exposure Multiplier, already lies最大值最小值保存为 PFMWrites the image as Portable FloatMap (.pfm).保存为 Radiance HDRWrites the image as a Radiance RGBE (.hdr) file, the common format for HDR environment maps; alpha is not stored.保存为文本The image as Base64 text, encoding the same bytes as HdrPixelImage.SerializeIntoBytes, for storing an image inside a text document.序列化为字节Serializes the image into Divooka's own binary form, as written by HdrPixelImage.WriteToStream, preserving every float exactly.设置 HDR 颜色Replaces the HDR color of one pixel, changing the image in place.转为平铺数组Copies all pixels into a single array, row by row from the top-left corner, so pixel (x, y) is at index y * Columns + x.转为像素图像Converts 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.转为 PFM 字节Encodes the image as a Portable FloatMap (.pfm) file in memory, producing the same bytes HdrPixelImage.SaveAsPortableFloatMap writes to disk.转为 Radiance HDR 字节Encodes the image as a Radiance RGBE (.hdr) file in memory, producing the same bytes HdrPixelImage.SaveAsRadianceHdr writes to disk.转为紧凑小端 32 位浮点字节The 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.变换 HDR 数据Applies an element transform atomically using a deep copy.更新颜色数据Performs a deliberately lossy sRGB-preview update and converts the result back into linear HDR data.更新 HDR 数据Applies a shape-preserving or shape-changing HDR update from a deep copy.写入 PFMEncodes the image as a Portable FloatMap (.pfm) file into a stream, starting at its current position; the stream is left open.写入 Radiance HDREncodes the image as a Radiance RGBE (.hdr) file into a stream, starting at its current position; the stream is left open.写入紧凑小端 32 位浮点数据Writes tightly packed little-endian float RGBA data without a header.写入流The binary format uses an eight-byte HDR-specific magic, version, dimensions, Int64 payload length, then row-wise little-endian IEEE-754 RGBA floats.分配像素Allocates a new [row][column] HDR pixel grid of the given size, optionally filled with one color.从平铺数组生成Creates an HDR image from a single array of pixels laid out row by row from the top-left corner, the inverse of HdrPixelImage.ToFlatArray.从像素图像生成Converts 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.从紧凑小端 32 位浮点字节生成Creates 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.初始化黑色图像Creates an HDR image of the given size filled with opaque black (red, green and blue 0, alpha 1).从字节初始化Rebuilds an image from bytes produced by HdrPixelImage.SerializeIntoBytes.初始化图像Creates an HDR image of the given size with every pixel set to one color.从文件加载Loads any format accepted by StbImageSharp's floating-point decoder.从文件缓冲区加载Decodes an image file held in memory into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.从流加载Decodes an image from a stream into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.从文本加载Rebuilds an image from Base64 text produced by HdrPixelImage.SaveAsText.从流读取Reads an image written by HdrPixelImage.WriteToStream, leaving the reader just past it.

颜色

透明度Opacity (Transparency), higher value means more opaque.蓝Blue channel, from 0 (none) to 255 (full).绿Green channel, from 0 (none) to 255 (full).红Red channel, from 0 (none) to 255 (full).创建颜色Creates transparent black: every channel, alpha included, is 0.相等Whether both colors have exactly the same red, green, blue and alpha bytes.透明度(浮点)The opacity as a fraction from 0 (fully transparent) to 1 (fully opaque).蓝(浮点)The blue channel as a fraction from 0 to 1 (the byte divided by 255).绿(浮点)The green channel as a fraction from 0 to 1 (the byte divided by 255).红(浮点)The red channel as a fraction from 0 to 1 (the byte divided by 255).获取哈希码A hash code built from all four channels, consistent with ColorElement.Equals.保存为文本The color as text, in the same "#RRGGBBAA" hex form as ColorElement.ToString.转为控制台颜色Converts this Color instance to the closest matching ConsoleColor.转为灰度A standard interpretation of (floating point) grayscale.转为十六进制Convert color to RGB hex representation.转为亮度The perceived brightness of the color as a gray level, weighting red, green and blue as 0.299, 0.587 and 0.114 (Rec.转为红色通道灰度Treats the color as a grayscale value by taking its red channel alone, the convention this library uses for single-channel images.转为文本Returns a hexadecimal string representation of the Image.ColorElement.转为三元组The red, green and blue bytes (0-255) as a tuple, dropping alpha.转为四元组The red, green, blue and alpha bytes (0-255) as a tuple.转为三维向量The red, green and blue channels as fractions from 0 to 1 in X, Y and Z, dropping alpha.转为四维向量The red, green, blue and alpha channels as fractions from 0 to 1 in X, Y, Z and W.设置透明度Returns a copy of this color with the same red, green and blue but a different opacity.写入流Writes the color as four raw bytes, red, green, blue then alpha.由 ARGB 生成颜色Creates a color from alpha, red, green and blue bytes, given alpha first.由控制台颜色生成Converts a ConsoleColor to a Color instance using a fixed mapping.由 RGB 生成颜色Creates a fully opaque color from red, green and blue bytes.由 scRGB 生成颜色由单位浮点值生成颜色获取可空颜色Gets color from serialization.颜色插值从文本加载Reads a color from text, accepting the same hex codes and color names as ColorElement.Parse.RGB 相乘并保留透明度Brightens or darkens a color by multiplying red, green and blue by a factor, keeping its alpha unchanged.加法运算Adds two colors channel by channel for red, green and blue; the result is always opaque.相等运算Whether two colors have exactly the same red, green, blue and alpha bytes.不等运算Whether two colors differ in any of red, green, blue or alpha.乘法运算Scales red, green and blue by a factor, truncating each result to a byte; the result is always opaque.减法运算Subtracts one color from another channel by channel for red, green and blue; the result is always opaque.解析颜色Parses a string representation of a color and returns the corresponding Image.ColorElement instance.解析十六进制 ARGBParses a hexadecimal string representation of a color in ARGB order.解析十六进制 RGBAParses a hexadecimal string representation of a color in RGBA order.从流读取Reads a color written by ColorElement.WriteToStream: four bytes, red, green, blue then alpha.序列化Nullable serialization helper.尝试解析颜色Tries 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.尝试解析十六进制 ARGBTries to read a hex color in alpha, red, green, blue order (the order XAML color codes use), without throwing on bad input.尝试解析十六进制 RGBATries to read a hex color in red, green, blue, alpha order, without throwing on bad input.

16 位灰度图像

绘画程序

程序化纹理生成器

转换采样坐标From pixel space to ProceduralNoiseSamplingSettings.TargetCoordinateSpace.创建树皮(木板)Bark-like vertical ridges with warped grooves, fibers, cracks, and chunky breakup.创建翻腾图案Creates billow noise, which emphasizes soft cloud-like blobs.创建砖块纹理创建细胞图案Creates a cellular / Worley-style texture.创建棋盘格创建等高线Thresholded fractal height field converted into contour lines.创建交叉阴影线创建虚线阴影线创建域扭曲图案Creates a domain-warped noise texture.创建圆点创建分形图案Creates a standard fractal texture such as FBm, Ridged, or PingPong.创建网格创建半色调圆点Analytic halftone dots driven by radial or linear gradient.创建阴影线创建人字纹(砖块)Classic 90-degree herringbone pavers / brick layout.创建六边形网格Pointy-top hex grid.创建朱利亚集合Creates a Julia fractal texture using escape-time iteration.创建曼德博集合Creates a Mandelbrot fractal texture using escape-time iteration.创建大理石图案Creates a marble-like texture by modulating sinusoidal bands with noise.创建砌体(砖块)Stack bond / running bond / basket weave masonry.创建迷宫创建噪声图案Creates a basic FastNoiseLite texture with no fractal stacking.创建法线贴图Converts a grayscale heightmap into a tangent-space normal map.创建拼花(木板)Wood parquet: straight, basket weave, or herringbone.创建格纹Multi-stripe plaid / tartan.创建放射状图案创建同心环创建扇贝纹Fish scales / scallops.创建石块(砖块)Irregular ashlar / stone block pattern using deterministic hashed row and block splits.创建阈值蒙版Creates a binary threshold mask from a height-like texture.创建湍流图案Creates turbulence noise, commonly used for masks and distortion fields.创建沃罗诺伊裂纹Crack network using distance difference between nearest and second-nearest jittered cell points.创建编织纹Over-under woven fabric pattern with simple shading.创建白噪声Creates white noise using a deterministic PRNG.创建木纹(木板)Creates a wood-ring texture.创建精细木纹(木板)Create detailed wood texture.创建锯齿纹生成高级分形纹理Creates a Terragen Power-Fractal-like color texture with rough high octaves and spatially clustered detail.生成程序化天空Aggregate entry.映射体素场景Produces an orthographic image projection of a voxel scene along one of its six axis directions.重复可视化噪声Quick helper to visualize a given noise.

图像滤镜

自适应阈值Applies adaptive thresholding to luminance.双边滤波Applies bilateral filtering.Canny 边缘检测Canny edge detection on luminance: a binary image, white on the one-pixel edges.限制对比度自适应直方图均衡Applies CLAHE contrast enhancement to luminance.颜色空间转换Converts the image to another color representation.细节增强Enhances local detail and contrast.膨胀Dilates bright regions.定向梯度涂抹Height map should drive the direction.保边滤波Edge-preserving smoothing.浮雕直方图均衡Applies global histogram equalization to luminance.腐蚀Erodes bright regions.查找轮廓Finds contours from a thresholded luminance image and draws them over the source.Floyd-Steinberg 抖动高斯模糊Applies Gaussian blur.梯度涂抹Height map should drive the direction半色调滤镜Applies a monochrome halftone effect using circular dots.高清缩放Speedy detail preserving upscale through resampling with Lanczos-4.高清缩放以适应Upscales the image to fit within the target size using Lanczos-4 resampling while preserving aspect ratio.霍夫圆检测Detects circles with the gradient Hough transform and draws them over the source.霍夫线段检测Detects line segments with the probabilistic Hough transform on Canny edges and draws them over the source.拉普拉斯算子Applies Laplacian edge detection to luminance.中值模糊Applies median blur.形态学运算Applies a morphology operation.形态学梯度Applies morphology gradient.涂色铅笔素描效果Produces a pencil-sketch effect.像素化Scharr 算子Applies Scharr edge detection to luminance.复古褐色Sobel 算子Applies Sobel edge detection to luminance.Sobel 边缘检测风格化Stylization: painterly, cartoon-like abstraction that smooths low-contrast regions and darkens strong structure.阈值化Applies simple thresholding to luminance.转为距离场暗角仿射变换Applies affine rotation around image center.透视变换Applies perspective warp from four source corners to four destination corners.

简单形状图像

颜色渐变

默认热力渐变Five-stop heat-map ramp on 0-1, running dark blue, blue, green, yellow, red.默认地形渐变Seven-stop terrain ramp on 0-1: deep water, shallow water, sand, grass, brown earth, grey rock and snow.自然冷色调Nine-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.自然土色调Nine-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.颜色渐变Creates a ramp from stops given in any order; they are sorted by position.色标数Number of stops; always at least one.区间终点Position of the last (highest) stop.区间长度Distance from the first stop to the last; zero for a single-stop ramp.区间起点Position of the first (lowest) stop.是否已归一化True when the stops run exactly from 0 to 1.色标The stop at the given index, counting in ascending order of position.色标The stops, sorted by ascending position.获取枚举器Enumerates the stops in ascending order of position.转为文本Writes the ramp as text in the ColorRampTextStyle.ColorAtStop style, one stop per line, which ColorRamp.Parse reads back.转为渐变文本Convert color ramp to parsable text format.创建默认水面颜色渐变Default water-like ramp for normal-shaded heightfield rendering.创建浅水水面颜色渐变Shallow water-like ramp for normal-shaded heightfield rendering.默认高度层颜色渐变A reasonable stylized 2D-ish default:解析颜色渐变Parses line-based color ramp text.尝试解析颜色渐变Parses 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.

二维向量

笔尖

单线字体

渐变色标

像素图像生成

自定义数据数组项

像素图像编辑增强

数据输入曲线

HDR 色调映射

图像转换

交互式图像查看器

图像合成器

单线笔迹路径

单线书写

形状运算