WriteableBitmapEffector is WriteableBitmap Effector for Windows Store apps and Windows Phone.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
3rdParty
Softbuild.Media.IOS
Softbuild.Media.WinPhone71
Softbuild.Media.WinPhone80
Softbuild.Media.WinRT
Source
packages
.gitignore
README.md
Softbuild.Media.IOS.sln
Softbuild.Media.WinPhone71.sln
Softbuild.Media.WinPhone80.sln
Softbuild.Media.WinRT.sln

README.md

Softbuild.Media

Softbuild.Media is WriteableBitmap effector and utilities for Windows Phone/Windows store apps/Xamarin.iOS projects.

(*)Project name before the change was "WriteableBitmap Effector".

Using Softbuild.Media on Windows Store apps

Examples

Please add the following to the using directive.

using Softbuild.Media;

Resize

var bitmap = await GetTestImageAsync();
var resizedBmp = bitmap.Resize(640, 480);

Effects

Grayscale

private async void btnGrayscale_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = bitmap.EffectGrayscale();
}

Sepia

private async void btnSepia_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = bitmap.EffectSepia();
}

Contrast

private async void btnContrast_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = bitmap.EffectContrast(1.0);
}

Saturation

private async void btnSaturation_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = bitmap.EffectSaturation(1.0);
}

Vignetting

private async void btnVignetting_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = await bitmap.EffectVignettingAsync(1.0);
}

Bakumatsu Effect

private async void btnBakumatsu_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = await bitmap.EffectBakumatsuAsync();
}

alt text

Toycamera Effect

private async void btnToycamera_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestImageAsync();
    imageDst.Source = await bitmap.EffectToycameraAsync();
}

alt text

Auto Coloring

private async void btnAutoColoring_Click(object sender, RoutedEventArgs e) {
    var bitmap = await GetTestMonochromeImageAsync();
    imageDst.Source = await bitmap.EffectAutoColoringAsync();
}

Save

Save Jpeg to Pictures Library

private async void btnSaveJpeg_Click(object sender, RoutedEventArgs e) {
    var bitmap = imageDst.Source as WriteableBitmap;
    await bitmap.SaveAsync(ImageFormat.Jpeg, ImageDirectories.PicturesLibrary, "effect_sample", 320, 280);
}

Save PNG to local in application

private async void btnSavePng_Click(object sender, RoutedEventArgs e) {
    var bitmap = imageDst.Source as WriteableBitmap;
    await bitmap.SaveAsync(ImageFormat.Png, ImageDirectories.InApplicationLocal, "effect_sample");
}

Save Gif to Roaming in application

private async void btnSavePng_Click(object sender, RoutedEventArgs e) {
    var bitmap = imageDst.Source as WriteableBitmap;
    await bitmap.SaveAsync(ImageFormat.Gif, ImageDirectories.InApplicationRoaming, "effect_sample");
}

Change Log

  • 2013/07-14 - Chaged this repository name.
  • 2013/03/26 - New suport for Xamarin.iOS (alpha version).
  • 2013/01/30 - New suport for Windows Phone apps.
  • 2012/08/16 - Release this project with Visual Studio 2012 and Windows 8
  • 2012/08/03 - Release this project with Visual Studio 2012 RC and Windows 8 Release Preview