This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private HSV HsvFromRgb(double r, double g, double b) | |
{ | |
var max = Math.Max(Math.Max(r, g), b); | |
var min = Math.Min(Math.Min(r, g), b); | |
var sub = max - min; | |
double h = 0, s = 0, v = 0; | |
// Calculate Hue | |
if (sub == 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// RGBへ変換する | |
/// </summary> | |
/// <returns>RGBオブジェクト</returns> | |
public RGB ToRGB() | |
{ | |
// まず、もしSが0.0と等しいなら、最終的な色は無色もしくは灰色である。 | |
if (Saturation == 0) | |
{ | |
return new RGB(Value, Value, Value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports Softbuild.Media | |
Public NotInheritable Class MainPage | |
Inherits Page | |
Protected Overrides Async Sub OnNavigatedTo(e As Navigation.NavigationEventArgs) | |
Dim bmp As WriteableBitmap = New WriteableBitmap(320, 240) | |
Await bmp.EffectBakumatsuAsync() | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list.Add(new SiteInfo(1, PublisherTypes.ShortStory, "SS宝庫", PublishTypes.RDF, "http://minnanohimatubushi.2chblog.jp/index.rdf", true)); | |
list.Add(new SiteInfo(2, PublisherTypes.ShortStory, "インバリアント -SSまとめサイト-", PublishTypes.RDF, "http://feed.rssad.jp/rss/fc2/invariant0.blog130", true)); | |
list.Add(new SiteInfo(3, PublisherTypes.Anime, "お絵かき速報!萌え絵上達法", PublishTypes.RDF, "http://mazikanon.blog102.fc2.com/?xml", true)); | |
list.Add(new SiteInfo(4, PublisherTypes.Sports, "なんJ(まとめては)いかんのか?", PublishTypes.RDF, "http://blog.livedoor.jp/livejupiter2/index.rdf", true)); | |
list.Add(new SiteInfo(5, PublisherTypes.News, "痛いニュース(ノ∀`)", PublishTypes.RDF, "http://blog.livedoor.jp/dqnplus/index.rdf", true)); | |
list.Add(new SiteInfo(6, PublisherTypes.News, "哲学ニュースnwk", PublishTypes.RDF, "http://blog.livedoor.jp/nwknews/index.rdf", true)); | |
list.Add(new SiteInfo(7, PublisherTypes.News, "ハムスター速報", PublishTypes.RDF, "http://hamusoku.com/index.rdf", true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using System.Net; | |
using System.IO; | |
namespace WebRequestSample | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SQLite; // ←これを追加 | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using Windows.Foundation; | |
using Windows.Foundation.Collections; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SepiaEffect.cs | |
// | |
// Copyright (c) 2012 Kenji Wada, http://ch3cooh.jp/ | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining | |
// a copy of this software and associated documentation files | |
// (the "Software"), to deal in the Software without restriction, including | |
// without limitation the rights to use, copy, modify, merge, publish, | |
// distribute, sublicense, and/or sell copies of the Software, and to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using System.Collections.Generic; | |
namespace MonoTouch.UIKit | |
{ | |
public enum MessageBoxResult | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Windows.Forms; | |
namespace SkypeAPISample | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last update: 2013/5/29 | |
Order by | |
・English | |
・Japanese | |
・Chinese (hant) | |
・Chinese (hans) | |
・Korean | |
・French |