From 5e5c98690ded670353ee650e1abe5cf47de6e92d Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 23 Aug 2016 17:41:24 +1000 Subject: [PATCH] Update readme Former-commit-id: ff480789c60c9395f2ac9e88e043d0025b3199d3 Former-commit-id: 9fb90d3c6b9e9274e5b866ed834bb065097aabda Former-commit-id: 05acd36376176b7f8658857b2bc6aafcb2ed05b2 --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a6ccd08c..594c0c1fb 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,17 @@ Individual processors can be initialised and apply processing against images. Th new Brightness(50).Apply(sourceImage, targetImage, sourceImage.Bounds); ``` -For advanced usage the `Image` class is available allowing developers to implement their own color models in the same manner as Microsoft XNA Game Studio and MonoGame +Setting individual pixel values is perfomed as follows: + +```csharp +Image image = new Image(400, 400); +using (PixelAccessor pixels = image.Lock()) +{ + pixels[200, 200] = Color.White; +} +``` + +For advanced usage the `Image` class is available allowing developers to implement their own color models in the same manner as Microsoft XNA Game Studio and MonoGame. All in all this should allow image processing to be much more accessible to developers which has always been my goal from the start.