Git Product home page Git Product logo

pinta.imagemanipulation's Introduction

Pinta.ImageManipulation

The same great effects that power Pinta are now available in a purely managed, graphics toolkit agnostic library you can easily use in your .NET app. All effects are implemented as multi-threaded Tasks that support cancelation. Originally from the excellent Paint.NET, with a few lines of code you can use filters like:

  • Gaussian Blur
  • Brightness/Contrast
  • AutoLevel
  • Sepia
  • Add Noise
  • and 30+ others

##License

Pinta.ImageManipulation is licensed under the MIT license. See license-mit.txt for the MIT License.

Code from Paint.Net 3.36 is used under the MIT License and retains the original headers on source files.

See license-pdn.txt for Paint.Net's original license.

##Using the Pinta.ImageManipulation Library

Pinta.ImageManipulation.dll is graphics toolkit agnostic and works purely on BGRA byte arrays. Some wrappers for common graphics toolkits are available.

For example, if you are using System.Drawing, add Pinta.ImageManipulation.dll and Pinta.ImageManipulation.System.Drawing.dll to your project. Then to apply a Gaussian blur to an image, use:

var src_bitmap = new System.Drawing.Bitmap (@"C:\pic.png");

var src_wrap = new BitmapWrapper (src_bitmap);

var blur = new GaussianBlurEffect ();
await blur.RenderAsync (src_wrap);

src_bitmap.Save (@"C:\pic2.png");

pinta.imagemanipulation's People

Contributors

cameronwhite avatar jpobst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.