Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Media.Image
Engine.Media.Image 的协作图:

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]

详细描述

在文件 Image.cs 第 16 行定义.

构造及析构函数说明

◆ Image() [1/5]

Engine.Media.Image.Image ( )

在文件 Image.cs 第 63 行定义.

这是这个函数的调用关系图:

◆ Image() [2/5]

Engine.Media.Image.Image ( Image image)

在文件 Image.cs 第 65 行定义.

函数调用图:

◆ Image() [3/5]

Engine.Media.Image.Image ( Image< Rgba32 > image)

在文件 Image.cs 第 70 行定义.

函数调用图:

◆ Image() [4/5]

Engine.Media.Image.Image ( LegacyImage image)

在文件 Image.cs 第 75 行定义.

函数调用图:

◆ Image() [5/5]

Engine.Media.Image.Image ( int width,
int height )

在文件 Image.cs 第 87 行定义.

函数调用图:

成员函数说明

◆ DetermineFileFormat() [1/2]

ImageFileFormat Engine.Media.Image.DetermineFileFormat ( Stream stream)
static

在文件 Image.cs 第 124 行定义.

◆ DetermineFileFormat() [2/2]

ImageFileFormat Engine.Media.Image.DetermineFileFormat ( string extension)
static

在文件 Image.cs 第 119 行定义.

◆ Dispose()

void Engine.Media.Image.Dispose ( )

在文件 Image.cs 第 288 行定义.

◆ GetPixel()

Color Engine.Media.Image.GetPixel ( int x,
int y )

在文件 Image.cs 第 99 行定义.

这是这个函数的调用关系图:

◆ GetPixelFast()

Rgba32 Engine.Media.Image.GetPixelFast ( int x,
int y )

在文件 Image.cs 第 97 行定义.

这是这个函数的调用关系图:

◆ Load() [1/4]

Image Engine.Media.Image.Load ( Stream stream)
static

在文件 Image.cs 第 141 行定义.

函数调用图:

◆ Load() [2/4]

Image Engine.Media.Image.Load ( Stream stream,
ImageFileFormat format )
static

在文件 Image.cs 第 129 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Load() [3/4]

Image Engine.Media.Image.Load ( string fileName)
static

在文件 Image.cs 第 143 行定义.

函数调用图:

◆ Load() [4/4]

Image Engine.Media.Image.Load ( string fileName,
ImageFileFormat format )
static

在文件 Image.cs 第 135 行定义.

函数调用图:

◆ operator Image()

implicit Engine.Media.Image.operator Image ( Image< Rgba32 > image)
static

在文件 Image.cs 第 296 行定义.

函数调用图:

◆ operator Image< Rgba32 >()

implicit Engine.Media.Image.operator Image< Rgba32 > ( Image image)
static

在文件 Image.cs 第 298 行定义.

函数调用图:

◆ PremultiplyAlpha()

void Engine.Media.Image.PremultiplyAlpha ( Image image)
static

在文件 Image.cs 第 117 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ProcessPixelRows()

void Engine.Media.Image.ProcessPixelRows ( PixelAccessorAction< Rgba32 > accessorAction,
bool shouldUpdatePixelsCache = true )

在文件 Image.cs 第 255 行定义.

这是这个函数的调用关系图:

◆ ProcessPixels()

void Engine.Media.Image.ProcessPixels ( Func< Rgba32, Rgba32 > pixelFunc,
bool shouldUpdatePixelsCache = true )

在文件 Image.cs 第 262 行定义.

函数调用图:

◆ Save() [1/2]

void Engine.Media.Image.Save ( Image image,
Stream stream,
ImageFileFormat format,
bool saveAlpha,
bool sync = false )
static

在文件 Image.cs 第 149 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Save() [2/2]

void Engine.Media.Image.Save ( Image image,
string fileName,
ImageFileFormat format,
bool saveAlpha )
static

在文件 Image.cs 第 249 行定义.

函数调用图:

◆ SetPixel()

void Engine.Media.Image.SetPixel ( int x,
int y,
Color color )

在文件 Image.cs 第 104 行定义.

◆ SetPixelFast()

Rgba32 Engine.Media.Image.SetPixelFast ( int x,
int y,
Rgba32 color )

在文件 Image.cs 第 102 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ DefaultGifEncoder

readonly GifEncoder Engine.Media.Image.DefaultGifEncoder = new() { ColorTableMode = GifColorTableMode.Local }
static

在文件 Image.cs 第 32 行定义.

◆ DefaultImageSharpConfiguration

Configuration Engine.Media.Image.DefaultImageSharpConfiguration = new(ImageSharpModules) { PreferContiguousImageBuffers = true }
static

在文件 Image.cs 第 29 行定义.

◆ DefaultImageSharpDecoderOptions

DecoderOptions Engine.Media.Image.DefaultImageSharpDecoderOptions = new() { Configuration = DefaultImageSharpConfiguration }
static

在文件 Image.cs 第 30 行定义.

◆ DefaultJpegEncoder

readonly JpegEncoder Engine.Media.Image.DefaultJpegEncoder = new() { Quality = 95, ColorType = JpegEncodingColor.YCbCrRatio420 }
static

在文件 Image.cs 第 31 行定义.

◆ ImageSharpModules

IImageFormatConfigurationModule [] Engine.Media.Image.ImageSharpModules
static
初始值:
= [
new BmpConfigurationModule(),
new GifConfigurationModule(),
new JpegConfigurationModule(),
new PbmConfigurationModule(),
new PngConfigurationModule(),
new QoiConfigurationModule(),
new TgaConfigurationModule(),
new TiffConfigurationModule(),
new WebpConfigurationModule()
]

在文件 Image.cs 第 17 行定义.

◆ m_isDisposed

bool Engine.Media.Image.m_isDisposed

在文件 Image.cs 第 61 行定义.

◆ m_pixels

Color [] Engine.Media.Image.m_pixels

在文件 Image.cs 第 38 行定义.

◆ m_shouldUpdatePixelsCache

bool Engine.Media.Image.m_shouldUpdatePixelsCache = true

在文件 Image.cs 第 39 行定义.

◆ m_trueImage

readonly Image<Rgba32> Engine.Media.Image.m_trueImage

在文件 Image.cs 第 60 行定义.

◆ Name2EngineImageFormat

readonly Dictionary<string, ImageFileFormat> Engine.Media.Image.Name2EngineImageFormat
static
初始值:
= new() {
{ "bmp", ImageFileFormat.Bmp },
{ "png", ImageFileFormat.Png },
{ "jpg", ImageFileFormat.Jpg },
{ "jpeg", ImageFileFormat.Jpg },
{ "gif", ImageFileFormat.Gif },
{ "pbm", ImageFileFormat.Pbm },
{ "qoi", ImageFileFormat.Qoi },
{ "tiff", ImageFileFormat.Tiff },
{ "tga", ImageFileFormat.Tga },
{ "webp", ImageFileFormat.WebP }
}

在文件 Image.cs 第 275 行定义.

属性说明

◆ Height

int Engine.Media.Image.Height
get

在文件 Image.cs 第 36 行定义.

◆ Pixels

Color [] Engine.Media.Image.Pixels
get

在文件 Image.cs 第 41 行定义.

◆ Width

int Engine.Media.Image.Width
get

在文件 Image.cs 第 34 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Media/Image.cs