TextureData.MapPixels

MapPixels(PixelMapMode)

Map all pixels for read/write

public PixelMapping MapPixels(PixelMapMode mapMode)
ParameterTypeDescription
mapModePixelMapModeMap mode

See Also


MapPixels(PixelMapMode, PixelFormat)

Map all pixels for read/write in given pixel format

public PixelMapping MapPixels(PixelMapMode mapMode, PixelFormat format)
ParameterTypeDescription
mapModePixelMapModeMap mode
formatPixelFormatPixel format

See Also


MapPixels(Rect, PixelMapMode, PixelFormat)

Map pixels addressed by rect for reading/writing in given pixel format

public PixelMapping MapPixels(Rect rect, PixelMapMode mapMode, PixelFormat format)
ParameterTypeDescription
rectRectThe area of pixels to be accessed
mapModePixelMapModeMap mode
formatPixelFormatPixel format

Return Value

Returns a mapping object, it should be disposed when no longer needed.

Exceptions

exceptioncondition
NotSupportedException

See Also