Browse Source

Update code samples

Former-commit-id: 803758f4797787da937f26d82026a60d92662cdd
Former-commit-id: 0d3f16fdaeb2ba7ab1c1d236910d0eb1164ed107
Former-commit-id: 16199f78ef84495eb55db990f6561c0928209b22
af/merge-core
James Jackson-South 10 years ago
parent
commit
f6b87ead0e
  1. 4
      README.md

4
README.md

@ -166,8 +166,8 @@ Here's an example of the code required to resize an image using the default Bicu
```csharp
using (FileStream stream = File.OpenRead("foo.jpg"))
using (FileStream output = File.OpenWrite("bar.jpg"))
using (Image image = new Image(stream))
{
Image image = new Image(stream);
image.Resize(image.Width / 2, image.Height / 2)
.Greyscale()
.Save(output);
@ -179,8 +179,8 @@ It will also be possible to pass collections of processors as params to manipula
```csharp
using (FileStream stream = File.OpenRead("foo.jpg"))
using (FileStream output = File.OpenWrite("bar.jpg"))
using (Image image = new Image(stream))
{
Image image = new Image(stream);
List<IImageProcessor> processors = new List<IImageProcessor>()
{
new GuassianBlur(5),

Loading…
Cancel
Save