圖形影像
穩定像素影像:建立、濾波、合成、轉換和檢視,以及用單線字型繪製文字
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.
簡單形狀影像
繪製圓形Draws a circle with the specified radius.繪製圓錐幾何體繪製立方體幾何體繪製長方體幾何體繪製曲線Draws (closed) curves/polygons.繪製圓柱幾何體繪製距離場Draws shapes filled as distance fields.繪製橢圓Draws an ellipse within the specified width and height.繪製等邊三角形Draws an equilateral triangle within the specified dimensions and optionally labels edges and angles.繪製六邊形Draws a regular hexagon inscribed in a circle with the specified radius.繪製線段Draws a line segment.繪製卵形Draws an oval with the specified major and minor radii.繪製五邊形Draws a regular pentagon inscribed in a circle with the specified radius.繪製多邊形Draws a regular polygon with the specified number of sides inscribed within the given width and height.繪製稜錐幾何體繪製四邊形Draws a quadrilateral with the specified width, height, and slanted angle.繪製矩形Draws a rectangle with the specified width and height.繪製直角三角形Draws a right triangle with the specified dimensions and optional edge and angle labels.繪製球體幾何體Draw a lit 3D sphere.繪製正方形Draws a square with the specified size.繪製星形Draws a star polygon.繪製文字Handles both single line and multi line繪製三角形Draws a triangle with the specified width and height.
顏色漸層
預設熱力漸層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.
二維向量
X 分量The X coordinate.Y 分量The Y coordinate.零向量Gets a Types.Vector2D that has all of its values set to zero.二維向量Initializes a new instance of the Types.Vector2D struct with the specified coordinates.長度Gets the length (magnitude) of the vector.長度平方Calculates the square of the vector's length.轉為文字距離平方Calculates the square of the distance between two vectors.點積Calculates the dot product of two vectors.加法運算Adds two Types.Vector2D instances.除法運算Divides a Types.Vector2D by a scalar.相等運算Compares two Types.Vector2D instances for equality.不等運算Compares two Types.Vector2D instances for inequality.乘法運算Multiplies a Types.Vector2D by a scalar.減法運算Subtracts one Types.Vector2D from another.取負運算Negates a Types.Vector2D.解析元組
筆尖
鋼筆A broad italic nib: wide, strongly modulated, tapering to a point at both ends.鉛筆A pencil: narrow, barely modulated, and blunt at both ends.筆尖角度Angle of the flat edge, radians.起筆收鋒Arc length over which the stroke swells at pen-down, px.收筆收鋒Arc length over which the stroke thins at pen-up, px.最小寬度Thickness kept even when travelling along the edge, px.收鋒下限How far the taper thins to (0 = needle point, 1 = no taper).寬度Full width of the nib edge, px.設定縮放The same nib at another size: every length scales, the angle and the taper floor do not.
單線字型
基線單位Baseline offset in raw Hershey units.大寫字母高度Font units from baseline to cap line.字元Every character this face has a glyph for.是否連筆True for connected cursive faces, where glyphs are drawn to join up.字形The glyph for a character, or null if this face has none.名稱What this face is called.取得或使用後備字型The glyph for a character, falling back to this face's '?' and then to a blank of the space's width.按名稱取得One of the embedded faces by StrokeFont.Name, or null if no face carries that name.從檔案載入Reads a face from a `.jhf` file on disk, for the stroke and engraving faces this package does全部字型The three faces embedded in this package.印刷體Hershey Roman Simplex: unjoined print, which is what a plotter or an engraver usually wants.手寫體Hershey Script: a light cursive hand, the one a handwriting animation usually wants.複雜手寫體Hershey Script Complex: the same hand with more strokes per glyph, so a heavier, more formal one.解析字型Parses the text of a `.jhf` file into a face.
漸層色標
漸層色標One colour stop on a Extensions.ColorRamp: the colour the ramp takes at a given position.分解相等顏色The colour at this position; alpha is kept.位置Normalized position; Generally between 0 and 1; Notice for engineering "strength" visualization where heatmap represents specific value ranges, the domain can be arbitrary.取得雜湊碼轉為文字相等運算不等運算
像素影像生成
自訂資料陣列項
建立真否陣列項Allows defining an array of boolean values by hand.建立數字陣列項Allows defining an array of double numbers by hand.建立低精度數字陣列項Allows defining an array of floating numbers by hand.建立整數陣列項Allows defining an array of integer numbers by hand.建立單行文字陣列項Allows defining an array of single line strings by hand.建立二維向量陣列項Allows defining an array of Vector2d values by hand.建立三維向量陣列項Allows defining an array of Vector3d values by hand.
像素影像編輯增強
資料輸入曲線
HDR 色調對映
轉為像素影像(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.轉為像素影像(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.轉為像素影像(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.轉為像素影像(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.