点击或拖拽改变大小

OpenGLReadPixels 方法 (Int32, Int32, Int32, Int32, UInt32, UInt32, IntPtr)

Reads a block of pixels from the frame buffer.

命名空间:  DSkin.OpenGL
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public void ReadPixels(
	int x,
	int y,
	int width,
	int height,
	uint format,
	uint type,
	IntPtr pixels
)

参数

x
类型:SystemInt32
Top-Left X value.
y
类型:SystemInt32
Top-Left Y value.
width
类型:SystemInt32
Width of block to read.
height
类型:SystemInt32
Height of block to read.
format
类型:SystemUInt32
Specifies the format of the pixel data. The following symbolic values are accepted: OpenGL.COLOR_INDEX, OpenGL.STENCIL_INDEX, OpenGL.DEPTH_COMPONENT, OpenGL.RED, OpenGL.GREEN, OpenGL.BLUE, OpenGL.ALPHA, OpenGL.RGB, OpenGL.RGBA, OpenGL.LUMINANCE and OpenGL.LUMINANCE_ALPHA.
type
类型:SystemUInt32
Specifies the data type of the pixel data.Must be one of OpenGL.UNSIGNED_BYTE, OpenGL.BYTE, OpenGL.BITMAP, OpenGL.UNSIGNED_SHORT, OpenGL.SHORT, OpenGL.UNSIGNED_INT, OpenGL.INT or OpenGL.FLOAT.
pixels
类型:SystemIntPtr
Storage for the pixel data received.
参见