Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Media.Bmp

struct  BmpInfo
struct  BitmapHeader

Public 类型

enum  Format {
  RGBA8 , RGB8 , Pixel1 , Pixel16 ,
  Pixel2 , Pixel4 , Pixel8
}

静态 Public 成员函数

static bool IsBmpStream (Stream stream)
static BmpInfo GetInfo (Stream stream)
static Image Load (Stream stream)
static void Save (Image image, Stream stream, Format format, bool sync=false)
static BitmapHeader ReadHeader (Stream stream)

静态 Public 属性

static readonly Dictionary< Format, BmpBitsPerPixel > EngineBmpFormat2ImageSharpBitsPerPixel
static readonly Dictionary< BmpBitsPerPixel, FormatImageSharpBitsPerPixel2EngineBmpFormat

详细描述

在文件 Bmp.cs6 行定义.

成员枚举类型说明

◆ Format

枚举值
RGBA8 
RGB8 
Pixel1 
Pixel16 
Pixel2 
Pixel4 
Pixel8 

在文件 Bmp.cs7 行定义.

成员函数说明

◆ GetInfo()

BmpInfo Engine.Media.Bmp.GetInfo ( Stream stream)
static

在文件 Bmp.cs67 行定义.

◆ IsBmpStream()

bool Engine.Media.Bmp.IsBmpStream ( Stream stream)
static

在文件 Bmp.cs62 行定义.

◆ Load()

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

在文件 Bmp.cs81 行定义.

函数调用图:

◆ ReadHeader()

BitmapHeader Engine.Media.Bmp.ReadHeader ( Stream stream)
static

在文件 Bmp.cs102 行定义.

◆ Save()

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

在文件 Bmp.cs87 行定义.

类成员变量说明

◆ EngineBmpFormat2ImageSharpBitsPerPixel

readonly Dictionary<Format, BmpBitsPerPixel> Engine.Media.Bmp.EngineBmpFormat2ImageSharpBitsPerPixel
static
初始值:
= new() {
{ Format.RGBA8, BmpBitsPerPixel.Pixel32 },
{ Format.RGB8, BmpBitsPerPixel.Pixel24 },
{ Format.Pixel1, BmpBitsPerPixel.Pixel1 },
{ Format.Pixel16, BmpBitsPerPixel.Pixel16 },
{ Format.Pixel2, BmpBitsPerPixel.Pixel2 },
{ Format.Pixel4, BmpBitsPerPixel.Pixel4 },
{ Format.Pixel8, BmpBitsPerPixel.Pixel8 }
}

在文件 Bmp.cs116 行定义.

◆ ImageSharpBitsPerPixel2EngineBmpFormat

readonly Dictionary<BmpBitsPerPixel, Format> Engine.Media.Bmp.ImageSharpBitsPerPixel2EngineBmpFormat
static
初始值:
= new() {
{ BmpBitsPerPixel.Pixel32, Format.RGBA8 },
{ BmpBitsPerPixel.Pixel24, Format.RGB8 },
{ BmpBitsPerPixel.Pixel1, Format.Pixel1 },
{ BmpBitsPerPixel.Pixel16, Format.Pixel16 },
{ BmpBitsPerPixel.Pixel2, Format.Pixel2 },
{ BmpBitsPerPixel.Pixel4, Format.Pixel4 },
{ BmpBitsPerPixel.Pixel8, Format.Pixel8 }
}

在文件 Bmp.cs126 行定义.


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