Posts

Pinta Effects for Your .NET Apps

Image
Pinta wouldn't exist today without the amazing code from the previously open source Paint.NET .  Now we've decided to pay it forward and make that same code available for other developers to easily use in their applications. To accomplish this, we've extracted the code for all of Pinta's effects into a graphics toolkit agnostic library called Pinta.ImageManipulation and posted it up on NuGet for easy use.  This includes over 35 multi-threaded effects exposed as cancelable Tasks. The core of Pinta.ImageManipulation is graphics toolkit agnostic and only works on arrays of BGRA bytes, but we've also included wrappers for System.Drawing (GDI+) and Cairo (GTK+). Now that you've got all those great new holiday photos, let's see how to apply an effect to them in 5 lines of code. Create a new project, bring up the NuGet dialog, and search for Pinta: Select the Pinta.ImageManipulation.System.Drawing package and install it... ..which adds 2 new proje...

Mono for Android Portable Libraries in VS

Image
Thanks to Scott Hanselman's recent article on .NET's support for Portable Class Libraries (PCLs), there has been some renewed interested in using them for Mono for Android . If you try to add a reference to a compiled PCL assembly , things should work, as VS simply checks that the version of mscorlib.dll referenced is the same as the MFA project (2.0.5).  However, if you try to add a reference to a PCL project , you get this nasty dialog box: The bad news is we don't ship any tooling for supporting these out of the box yet.  The good news is it's trivial to do it yourself! The portable libraries are installed in .NET's Reference Assemblies folder, which is here: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0 If you explore around in that folder, you will see there are something called " Profiles " which specify the common assemblies for a given set of targets. For example, " Profile2 " targets .NE...

Playing With Roslyn

Image
As a tools guy, I've been fascinated with Roslyn ever since Microsoft previewed it. It looks like it provides lots of power for tools to consume. Now that the first CTP is out, I spent some time over the weekend playing with it. The first thing it gives you access to is parsing source code, giving you an object model you can play with, and then letting you spit the modified source code back out. Reading source code in is easy: var source_text = File.ReadAllText ("input.txt"); var tree = SyntaxTree.ParseCompilationUnit(source_text); var root = (CompilationUnitSyntax)tree.Root; Now we have an object model we can play with. We can search through the model for specific tokens and replace them with new ones, like this: // Replace "Hello World!" with "Goodbye World!" var output = root.GetFirstToken (p => p.Kind == SyntaxKind.StringLiteralToken); var new_output = Syntax.StringLiteralToken ("\"Goodbye World!\"", "Goodbye...

Pinta 1.0 Released

Image
After roughly 16 months of development, Pinta is proud to join the ~1% of open source projects that make it to version 1.0! I am extremely pleased of how Pinta has turned out, and extremely grateful for everyone who sent encouragement, bug reports, patches, and translations. Some 1.0 Links: - Release Notes - Downloads - Bug Tracker - Feature Requests In the next month or so I'll get up a roadmap of where future Pinta development will be going. Hint: Plugins. Thanks again to everyone who helped make this happen, and here's hoping for another great 16 months of development!

Lesson of the Week

Apparently if you want third parties (Apple App Store, Google Marketplace, MS App Store) to distribute your software for you, you shouldn't choose a license that forces requirements on distributors.

MonoDroid Progress

Image
About 4 months ago, I worked on porting some of the Android SDK samples to run on MonoDroid. It was a soul-crushing failure. Every line of code I wrote exposed a new bug in MonoDroid which I had to wait until it got fixed to continue. Eventually I gave up on doing anything more than the absolutely trivial Hello World. What a different story things are today! I dusted off my unfinished Snake port, and it now works without modification. Since I did it so long ago, there was no telling what magic I had in there to make it work on MonoDroid, so I ported another one from scratch. I grabbed the hardest sample I think they have: JetBoy . It's basically a fast-paced, Guitar Hero-esque game where you have to fire your laser to the music as each asteroid passes across the beat line. After an afternoon of literal translation to C# (over 1k LOC), I fixed up the few Java porting issues like anonymous classes and nested classes accessing the parent class's private variables, and it * j...

Full of Hot Air

Image
Today there were several hot air balloons out when I came home. One came closer and closer to my house. And landed in the street in front of my house. It was then deflated and sent on its way. Shot from the inside. Full Photo Set On Flickr

Pinta 0.5 Release

Image
Just a quick note that Pinta 0.5 has been released today, with a few big features like multiple images support, fun new brushes, and clone stamp. Full release notes are available here: http://pinta-project.com/release/0.5

You Can't Please Everyone

Image
If there's one thing I've learned in designing GUI's and websites is you can't please everyone. One person's favorite part is another's "worst idea ever". Same goes for Pinta . Some people want to be able to move the various widget pads away from their canvas. Others want them to always be visible and easy to reach. For Pinta 0.4, we're going to try to please as many people as possible. To do that, we've brought in MonoDevelop 's incredibly awesome docking library. This allows you to resize, move, close, float, and autohide pads. Here's the default: Here's an example of a customized layout: Hopefully this will please 90% of our users! Many thanks to the MonoDevelop team for such as awesome (and small!) library!

Pinta 0.3 Released!

Image
Twenty inches of rain couldn't stop the release of Pinta 0.3 . This is a great release, as it brings us pretty close to feature parity with Paint.NET. I think the most important new feature is live preview, especially as this release adds 25 new effects to play with. It also adds 3 new tools (gradient, text, magic wand select) and has several visual improvements to make image editing / painting better. I've posted packages/installers for SUSE/Mac/Windows/Zip, and the excellent Debian guys should have the Ubuntu PPA updated shortly. Check out the full release notes for Pinta 0.3 ! Thanks to everyone who made this release possible!

A Wet Weekend

Image
It's been a wet weekend here in Tennessee. On Saturday, my town got an estimated 12-15" of rain in about 12 hours. Obviously, no place is designed to handle that much rain that quickly. Then it repeated again today, causing widespread flooding throughout the entire Middle Tennessee area. Any kind of previous record for rainfall or rivers heights have been demolished. I think about the only thing they've shown on national news is this video of a portable classroom cruising down the interstate. (Note this is I-24, a 4-lane national highway.) That was yesterday, things got a lot worse today, as the water made it to the streams and rivers, which then overflowed their boundaries. It's impossible to capture in a few pictures how widespread this is. Everything in about a 50 mile radius is flooded and shut down. They actually imposed a curfew where I live, so I'm not allowed to leave my house, not that I could probably get anywhere with most major roads closed. My ...

Kicking Pinta in to High Gear

Image
As people may or may not be aware, even though I work for Novell, Pinta is not sponsored by Novell. It is a project I do purely in my free time. Since it's getting kinda popular, I thought it'd be nice to earn some money with it so I can dedicate more time to it. Unfortunately, society has decided that creative works (software, music, movies, tv) aren't worth paying money for. So far, I think the only successful business model for open source software is to have a browser and sell your homepage to Google or Yahoo. I thought about adding a browser to Pinta, but it was hard to justify as enhancing the user experience. Advertising is the only other legitimate option, but I was reluctant to degrade the GUI by placing ads in it. However I've come up with a brilliant and creative idea that adds advertising in a fun way that I think users will enjoy. I am still working out the deals with advertisers, but the plan is to add sponsored effects. Basically, we've come up...

Pinta: Nil Dot Duo

Image
I am extremely excited to announce the release of Pinta 0.2 ! Pinta 0.2 is a big step towards general feature parity with PDN, by adding great new features like: - 5 new tools (Paint Bucket, Recolor, Line, Zoom, Pan) - 5 new adjustments (Levels, Curves, Brightness/Contrast, Hue/Saturation, Posterize) - 5 new effects (Ink Sketch, Oil Painting, Pencil Sketch, Gaussian Blur, Glow) - Enhanced layer and history pads - Multithreaded adjustments/effects rendering - Basic OS X integration - and more! Full release notes (with pictures!) are available here . Packages are available here , and likely more will be contributed. The most exciting part about this release is that it isn't all my work. Pinta has attracted several great contributors who are helping it quickly move towards maturity. Without their awesome work, Pinta would be releasing today with only about half of these new features! With 0.2 out the door, now I can turn to the merge requests already waiting to make 0.3 an even b...

Delayed Transition

After Comcast's year-long advertising blitz on how their customers were safe from the analog->digital TV transition, I got a nice letter in the mail today informing me that Comcast is going, *gasp*, all digital. All I need to be ready for the transition is a digital converter box for every television, which they will gladly rent me! Maybe the government will offer vouchers for them. ;)

Internet TV

Dear Internet Media companies, Have I got a deal for you! Looking at my cable bill, I currently pay $88.59 a month for basic cable (no premium channels) and one HD DVR. If everything I watch is in-season, I watch about 50 hours of television a month plus local football (CBS). Obviously, this is ridiculous and needs to stop very soon. So here's a chance for me to pay you cash money, Apple/Microsoft/Google/Hulu/whoever. I would gladly pay, lets say, $30-$40 a month for up to ~60 hours of television. It can be DRM'd, it can be "rented", I don't care, as long as I can play it in HD on my TV. I would also greatly prefer to be able to pre-download it so I can have high quality without network hiccups. Unfortunately, the current internet TV model is ~$3 per HD episode, which makes it remarkably more expensive than cable, even for my limited usage. As it stands, it looks like I'm going to have to cobble together my own solution of Windows Media Center DVR for OTA...

Calling All Testers!

Image
We recently released a beta version of our upcoming Mono Tools for Visual Studio version 1.1, containing a couple of nifty new features. - File copying is smarter, and no longer copies files that haven't changed. - It is now easier to package a pre-compiled copy of a web site: - And, most importantly, a preview of VS2010 support that works with VS2010 RC! Give it a shot and let me know if something is broken so I can fix it before we release! Full release notes and download links can be found here . Enjoy!

A Great First Week

I wanted to thank everyone for the tremendous show of support for Pinta in it's first week! A few stats: - The announcement of Pinta was picked up by several large tech news sites. - The Pinta web site received over 29,000 hits. - 23 people sent me emails of encouragement. (And 1 of discouragement.) - People contributed packages for Ubuntu, OS X, and Pardus Linux. I was also contacted by people making packages for Fedora and Windows. - Roughly 10 people sent me email offering to translate Pinta into a variety of languages. (We're not ready for translations yet, but I have a bunch of emails to send when we are!) - 7 people have contributed code which has already been merged into Pinta's master repository . Overall, it was a great week! I also wanted to thank everyone that I didn't personally reply to. I was flooded with emails all week and couldn't respond to them all! Anyways, work has begun on Pinta 0.2. Thanks to many great contributions, my roadmap f...

Introducing Pinta

Image
Over the holiday break, I stumbled upon this article from OSNews stating that there was a need for something like Paint.NET for Gtk. Having some experience with porting Paint.NET to Mono Winforms before, I knew that that was a massive task. But it still got me curious about Cairo and creating a layered canvas, since I had never played with Cairo or Gtk. After playing around for a few hours, I actually had a working paintbrush and canvas. Intrigued by my success, I played around with it for a few more days. By the end of the week I had a nifty little paint program with a few features. Now, a month later, it's time to open my little project up to the world: Pinta . Pinta is a clone of Paint.NET. It already has a small, but hopefully useful, set of features like multiple layers and infinite levels of Undo/Redo. I hope to implement the same feature set as Paint.NET. Currently there are several tools missing, as well as adjustments like brightness/contrast and levels and Pain...

Taking All Bets

With the massive success of the iTunes App Store (over 3 billion apps downloaded), I think it's safe to assume the next version of OS X will include an App Store for Mac software. The question is: How many iterations of OS X will it take before Mac software can only be distributed (without "jailbreaking") through the App Store, thus ensuring Apple gets their cut of all Mac software sales?

Merry Christmas Back

Image
My Christmas gift to myself (mainly my back) this year was a spiffy Aeron chair, since I spend probably 10+ hours sitting at my desk each day. It is a considerable upgrade from what I've used for the last 2 years: We're cool now, right vertebrae?