From 9eb0f67608614676aed0158ccf02feb81f606848 Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Sat, 30 Dec 2017 09:22:59 +0200 Subject: [PATCH] Updated Questions and Answers (markdown) --- Questions-and-Answers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Questions-and-Answers.md b/Questions-and-Answers.md index e09124d..b912328 100644 --- a/Questions-and-Answers.md +++ b/Questions-and-Answers.md @@ -26,7 +26,8 @@ using (Image image = Image.Load($"{filename}.png")) { var imageHeight = image.Height;//height of image in pixels var imageWidth = image.Width; - var pixels =image[200,200];//the pixel variable contains: <1  1  1  1> + var pixel1 =image[200,200];//the pixel variable contains: <1  1  1  1> + var pixel2 =image[0,0] //means top left pixel. Exceeding the bounds of the image would yield an exception //Which are normalized values (a 0-1 float, instead of 0-255),the 4 values represent "Red Green Blue Alpha" in 32 bits, because Rgba32 was chosen. var pixels2 = image[125, 180];//<0.7647059  0.7647059  0.7647059  1> }