GetPixelFromScreen

From SwinGame

GetPixelFromScreen allows you to read the color of a pixel that has been drawn to the screen. This will read the color of the pixel from the current frame buffer, this is the buffer that will be drawn to the screen at the next RefreshScreen.

Where: SGSDK_GRAPHICS

Contents

Languages

Pascal

function GetPixelFromScreen(x, y: Integer): Color;

C#

public static Color Graphics.GetPixelFromScreen(int x, int y)

Visual Basic .NET

public Function Graphics.GetPixelFromScreen(ByVal x As Integer, ByVal y As Integer) As Color

Visual Basic 6

public Function Graphics.GetPixelFromScreen(ByVal x As Integer, ByVal y As Integer) As Color

Also See