|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|

Public 成员函数 | |
| Image () | |
| Image (Image image) | |
| Image (Image< Rgba32 > image) | |
| Image (LegacyImage image) | |
| Image (int width, int height) | |
| Rgba32 | GetPixelFast (int x, int y) |
| Color | GetPixel (int x, int y) |
| Rgba32 | SetPixelFast (int x, int y, Rgba32 color) |
| void | SetPixel (int x, int y, Color color) |
| void | ProcessPixelRows (PixelAccessorAction< Rgba32 > accessorAction, bool shouldUpdatePixelsCache=true) |
| void | ProcessPixels (Func< Rgba32, Rgba32 > pixelFunc, bool shouldUpdatePixelsCache=true) |
| void | Dispose () |
静态 Public 成员函数 | |
| static void | PremultiplyAlpha (Image image) |
| static ImageFileFormat | DetermineFileFormat (string extension) |
| static ImageFileFormat | DetermineFileFormat (Stream stream) |
| static Image | Load (Stream stream, ImageFileFormat format) |
| static Image | Load (string fileName, ImageFileFormat format) |
| static Image | Load (Stream stream) |
| static Image | Load (string fileName) |
| static void | Save (Image image, Stream stream, ImageFileFormat format, bool saveAlpha, bool sync=false) |
| static void | Save (Image image, string fileName, ImageFileFormat format, bool saveAlpha) |
| static implicit | operator Image (Image< Rgba32 > image) |
| static implicit | operator Image< Rgba32 > (Image image) |
Public 属性 | |
| Color[] | m_pixels |
| bool | m_shouldUpdatePixelsCache = true |
| readonly Image< Rgba32 > | m_trueImage |
| bool | m_isDisposed |
静态 Public 属性 | |
| static IImageFormatConfigurationModule[] | ImageSharpModules |
| static Configuration | DefaultImageSharpConfiguration = new(ImageSharpModules) { PreferContiguousImageBuffers = true } |
| static DecoderOptions | DefaultImageSharpDecoderOptions = new() { Configuration = DefaultImageSharpConfiguration } |
| static readonly JpegEncoder | DefaultJpegEncoder = new() { Quality = 95, ColorType = JpegEncodingColor.YCbCrRatio420 } |
| static readonly GifEncoder | DefaultGifEncoder = new() { ColorTableMode = GifColorTableMode.Local } |
| static readonly Dictionary< string, ImageFileFormat > | Name2EngineImageFormat |
属性 | |
| int | Width [get] |
| int | Height [get] |
| Color[] | Pixels [get] |
| Engine.Media.Image.Image | ( | LegacyImage | image | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| void Engine.Media.Image.ProcessPixelRows | ( | PixelAccessorAction< Rgba32 > | accessorAction, |
| bool | shouldUpdatePixelsCache = true ) |
| void Engine.Media.Image.ProcessPixels | ( | Func< Rgba32, Rgba32 > | pixelFunc, |
| bool | shouldUpdatePixelsCache = true ) |
|
static |
|
static |
| Rgba32 Engine.Media.Image.SetPixelFast | ( | int | x, |
| int | y, | ||
| Rgba32 | color ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |