TextureData.MapPixels

MapPixels(PixelMapMode)

映射所有像素以进行读/写

public PixelMapping MapPixels(PixelMapMode mapMode)
参数类型描述
mapModePixelMapMode映射模式

另请参见


MapPixels(PixelMapMode, PixelFormat)

在给定像素格式下映射所有像素以进行读/写

public PixelMapping MapPixels(PixelMapMode mapMode, PixelFormat format)
参数类型描述
mapModePixelMapMode映射模式
格式PixelFormat像素格式

另请参见


MapPixels(Rect, PixelMapMode, PixelFormat)

在给定像素格式下映射由矩形指定的像素以进行读取/写入

public PixelMapping MapPixels(Rect rect, PixelMapMode mapMode, PixelFormat format)
参数类型描述
矩形矩形要访问的像素区域
mapModePixelMapMode映射模式
格式PixelFormat像素格式

返回值

返回一个映射对象,使用完毕后应释放。

异常

异常条件
NotSupportedException

另请参见