CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of color
Public Function generateGrayScaleImage(ByVal sourcePath As String, ByVal destinationPath As String) As Boolean
        Dim originalImage As Bitmap = Nothing
        Dim newBitmap As Bitmap = Nothing
        Dim g As Graphics = Nothing
        Dim success As Boolean = False
 
        If File.Exists(sourcePath) Then
            Try
                originalImage = Bitmap.FromFile(sourcePath)
            Catch ex As Exception
by Yasser   February 10, 2011 @ 5:22am
223 Views
no comments
 
C#
using System.Collections.Generic;
using System.Windows.Media;
 
namespace Sketchables
{
  /// <summary>
  /// Provides a dictionary of named colors.
  /// </summary>
  public static class WellKnownColors
  {
by Philipp   November 05, 2010 @ 9:20am
553 Views
no comments
 
C#
//Writes colored text to the console and allows to clear previously written lines
//as long a not line break is present
 
//Sample - screenshot at http://img299.imageshack.us/img299/3931/consolex.png
 
C.InfoLine("Non-colored text...");
            
C.Error("Outch, an error.");
Thread.CurrentThread.Join(1000);
C.ClearLine();
by Philipp Sumi   July 25, 2010 @ 8:37am
335 Views
no comments
 
Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\FontAndColors\{A27B4E24-A735-4D1D-B8E7-9716E1E3D8E0}]
"Colorable item format version"=dword:00000008
"Plain Text Foreground"=dword:00e0e0e0
"Plain Text Background"=dword:00303030
"Plain Text FontFlags"=dword:00000000
"Selected Text Foreground"=dword:00000000
"Selected Text Background"=dword:00c0c0c0
"Selected Text FontFlags"=dword:00000000
by Jon Erickson   June 30, 2010 @ 11:09am
629 Views
no comments
 
var hex = ['FF', 'CC', '99', '66', '33', '00'];
 
function colorPanel(){  
    for (var i = 0; i < 6; i++) {
        for (var j = 0; j < 6; j++) {
            for (var k = 0; k < 6; k++) {
                var color = hex[j] + hex[k] + hex[i];
                document.write('#' + color + '<br />');
            }
        }
by yuyu1984   January 05, 2010 @ 4:37pm
327 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate