C# Corner

Resources  
  • ColorDialog in C#Dec 21, 2000. A ColorDialog control is used to select a color from available colors and also define custom colors. This article demonstrates how to use a ColorDialog in Windows Forms and C#.
  • ColorDialog : How to use?Dec 21, 2000. Changing color of your Window and its controls is a piece of cake in C# using ColorDialog class.
  • Color GuideJun 11, 2001. This Program will generate all the colors that are supported in C# according to the Name.
  • Time TickerJun 26, 2001. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
  • Mastermind Game in C#Aug 10, 2001. This is the game of Mastermind written in C#. The game is played by clicking on a set of 4 colors and then hitting the score button. Colors can repeat themselves in this game, so be wary!
  • Scribble in C#Aug 24, 2001. Here is a simple scribble C# program you can change the color and the pen width.
  • Owner Draw Menus in C#Apr 03, 2002. This article will explain to you how we can draw our own menu items with our own fonts , pictures , background color and other graphics objects.
  • Drawing Transparent Images and Shapes using Alpha BlendingApr 22, 2002. Alpha blending is a process of mixing colors and generating a transparent affect. To test this, you draw some graphics shapes on a surface and draw image on top of those shapes and you should be able to see the shapes.
  • Expression EvaluatorApr 30, 2002. This program uses the transformation from infix notation to postfix notation to evaluate most of the mathematical expressions.
  • An Editable GridView Control in C# and .NET - Part 1May 28, 2002. I've gotten a lot of e-mail about my GridView control Article, so I've decided to write a follow up article on a more powerful control that allows you to edit the cells within the control and change the colors of the cells.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • OpenGL using CsGLOct 07, 2002. I m glad to be the first one writing about OpenGL at this site. What I want to show you in this article is that it is fairly easy to setup a form that is capable of showing 3D.
  • Working with Portable Network Graphics(PNG) Format : Part IDec 13, 2002. First off, why use PNG instead of GIF? Probably the most important reason is that GIF supports a maximum of 256 colors.
  • Ray Tracking in C# and .NET UpdatedDec 17, 2002. In this article, the author adds (fixes) new features to the code.
  • MS Office Style Color Picker DialogDec 18, 2002. For a project I'm working on I needed something more stylish than the standard color dialog which comes with .NET, so I decided to make a color picker dialog of my own.
  • XSLT Transformations and XSLT Intellesense within the .NET IDE Jan 15, 2003. With XML and XSLT transformations becoming a large part of many business applications it would be beneficial to have this functionality in the .NET IDE. Following are the instructions for adding xslt transformations and intellesense to xslt documents to the .NET IDE.
  • Speedometer: Applying GDI+ TransformationsFeb 10, 2003. This zip file contains two folders - one folder contains speedometer control and the other contains the application that uses the control. Put both folders in the same location and open the application in VS and run it.
  • Change Color of a Column Based on Column ValuesMay 15, 2003. In this article we'll see how to change the color of column based on the column value.
  • Formatting ASP.NET DataGrid's DataJun 17, 2003. This article shows you how to change the color of a DataGrid row and format of date.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The second part of this article shows how to print out the contents of a RichTextBox control.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The Application is a simple Windows Form program that allows you to open and save the text files edited in the rich edit control, as well as print them out. The program takes advantage of a “syntax” text file for PHP which lists the functions and keywords contained in the PHP language.
  • ColorFul Web DropDown List in ASP.NETJul 23, 2003. In this example we will build an ASP.NET User Control which provides a listing of colors with the list items displayed in the actual color that the list item represents.
  • Using Genetic Algorithms to Generate Evolutionary Art in C# and .NETOct 10, 2003. In this article we will experiment a bit with genetic algorithms and creating fitness functions that produce art on a Windows Form.
  • Enhanced XP Button ControlDec 12, 2003. The enhanced XP style button is very easy to use and it supports rectangle, circle or ellipse shape with image and different colors. This control also inherit most of the properties from the Forms.Button.
  • XML TransformationsMar 15, 2004. This article shows you how to use XML transformation classes defined in the .NET Framework class library to transform XML data into various user interfaces.
  • Introduction to GDI+ Transformations Apr 01, 2004. A transformation is a process that changes graphics objects from one state to another. Rotation, scaling, reflection, translation, and shearing are some examples of transformation. Transformations can be applied not only to graphics shapes, curves, and images, but even to image colors.
  • The Graphics Class and TransformationsApr 01, 2004. The Graphics class defined the transformation related functionality. This article discussed the Graphics class and its members that participate in transformation process.
  • The Matrix Class and TransformationsApr 01, 2004. Matrices play a vital role in the transformation process. In GDI+, the Matrix class represents a 3×2 matrix that contains x, y, and w values in the first, second, and third columns, respectively.
  • Color Transformations and the Color MatrixApr 10, 2004. This article discusses the color transformations and how to apply Color Matrix on image colors to provide various effects such as gray scale effects, reduce or increase the contrast, brightness, or redness of an image.
  • Advanced Notepad in C#Apr 13, 2004. This is an advanced version of Notepad that allows you to search, replace, change background and foreground text color. It also provides registry editing options.
  • Image Transformation in C# with GDI+ Apr 14, 2004. Image transformation is exactly the same as any other transformation process. In this section we will see how to rotate, scale, translate, reflect, and shear images.
  • Transforming Visual Studio .NET Projects into NANT files using XSLT and .NETApr 16, 2004. I was looking for a solution on how to execute an XSL transform on a C# project file and convert it to a Nant build file. Nant provides the xsl file to do the conversion under the open source license agreement, but Nant does not provide away of producing the transformation.
  • Significance of Transformation OrderApr 27, 2004. When applying a composite transformation on graphics objects, the order of transformations plays a vital role. This article shows you various aspects of the transformation order and the results.
  • Text Transformation using GDI+ and C#Apr 27, 2004. This article shows you how to use GDI+ classes defined in the .NET Framework class library to apply transformations on text.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • How to Write and Read a Color in C#Dec 09, 2004. This article shows how to transform a color in hexadecimal representation.
  • ClickMania GameDec 21, 2004. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • .NET Color ListBoxApr 26, 2005. .Net ListBox control itself works fine, however as a base class for further derivation it is fundamentally flawed. The root of evil is in the Windows API ListBox. .Net ListBox is just a wrapper for this control.
  • Alternate Row Color in Crystal ReportJun 07, 2005. This article shows how to develop reports with alternating row colors.
  • ASP.NET 2.0 Xml Control Oct 09, 2005. The Xml control of ASP.NET 2.0 is used to display an XML document and apply XML transformations to transform the data. This article shows how to use Xml control.
  • Using XML and XSLTJan 18, 2006. XML Stylesheet Transformation(XSLT) is defined as a language for converting XML documents to other document formats. This article shows how to perform the transformation using classes of .NET Framework.
  • Antialiased Analog ClockApr 04, 2006. This is an antialiased analog clock sample written in C# using GDI+. It has no flicker at run time because of using Double Buffering technique, and it has many properties that you can customize it such as tick and hand colors, gradient background color, custom date and hand styles.
  • Fuliggine ColorPickersMay 11, 2006. In this article the author shows to build color picker and embedded color controls using GDI+.
  • Tip: How to conditionally change the color of a Chart in Crystal Reports?Oct 18, 2006. This tip shows how to change the color of a Chart in Crystal Reports based on some conditions.
  • Tip: How to change the color of Chart Bars in Crystal Reports?Oct 20, 2006. This tip shows you how to change the color of a chart bars in Crystal Reports.
  • Implement Microsoft DirectX Image Transformation Filters in ASP.NET 2.0Dec 07, 2006. This article describes an easy approach to creating custom Web controls used to display Microsoft DirectX Image Transformation filter effects in an ASP.NET 2.0 web page.
  • Simple Web and RGB Color Picker UtilityFeb 08, 2007. The article addresses the construction of a simple utility application useful for selecting an RGB or web color.
  • WPF Application for Importing ESRI ShapefilesFeb 26, 2007. A standalone application for reading ESRI shapefiles and displaying them on a WPF Canvas.
  • XAML TextBoxApr 10, 2007. XAML <TextBox /> element represents the XAML TextBox control. This article discusses how to create a TextBox and set its various properties such as background and foreground colors, setting size and positions, fonts, wrapping, scrolling, and input validations.
  • Accessing Themes/SkinId's Programmatically using ASP.Net 2.0Apr 17, 2007. This article will give you good idea, as how we can access Theme & Skins & use CSS with respect to each theme, Microsoft has provided great feature in asp.net 2.0, which will reduce developer's stress to maintain GUI and Color-combination again.
  • A Scrollable MessageBox in C#Jul 30, 2007. This article demonstrates how to create a message box that contains messages that scroll. This message box also allows you to read the message in from a file as well as change fonts and color properties.
  • Color Syntax Editor Part II - Exporting a RichTextBox to a Microsoft Word DocumentAug 14, 2007. This article is part II of a color syntax editor created back in 2003. It describes how to export the contents of the RichTextBox to Word and Open the Word Document Programmatically.
  • Web based colour tool for .NETOct 02, 2007. The .NET Framework provides us with over 100 colours to use within the System.Drawing namespace. In order that we know exactly what all these colours look like here is a simple web based tool that uses Reflection to loop through all the colours with the System.Drawing.Color struct and print them to the page.
  • Ajax AnimationExtender ControlFeb 01, 2008. In this article we are going to discuss about AJAX AnimationExtender control. It provides good animation effect such as moving an ASP Control to a new place, resizing it, modifying its color, or making it fade in or fade out. In this article I m going to use fade in or fade out animation.
  • Biztalk Messaging ServicesMar 27, 2008. This article is intended to illustrate the concepts of mapping in Biztalk Server 2006.
  • Colorful Console Mode Applications in C#Jun 09, 2008. So, you need to a write a console mode application, no reason you can’t have a little fun with it by introducing color into the output. This article describes how to jazz up a console mode application with color (which, as you will see, is pretty darned easy to do).
  • Making Transparent Control using GDI+ and C# (Updated to NET 3.5)Jun 10, 2008. This article provides an approach to a Transparent Control that draws an ellipse with real transparent background and a brush that supports transparent colors.
  • Animated Banners in XAMLJul 02, 2008. This article shows how to use animation related controls in XAML to create an animated banner with animations such as gradient colors, text rotation, and resize the banner text.
  • Your first Animations Using XAML and Silverlight - Color Animation: Part IJul 29, 2008. In this article, I will give a trick of how to deal with ColorAnimation class within VS2008 and Silverlight context using both xaml and C# 4.0, afterward, and in the two subsequent articles, we’ll focus on the DoubleAnimation and PointAnimation.
  • Your first animations using XAML and Silverlight- Double animation: Part IIJul 30, 2008. In the previous article "Your first animations using xaml and silverlight - Color animation: Part I", we've exposed a technique of how to deal with color animation. In this article, I will do same thing but with a different animation. I mean the DoubleAnimation class this time.
  • Applying Multiple Transformations using the TransformGroup in Silverlight 2.0Jan 22, 2009. In this article we will see how to apply multiple transformations to a single object in Silverlight 2.0 using the TransformGroup class.
  • Color Selector Control in SilverlightFeb 17, 2009. In this article you will learn how to use Silverlight Color Selector Control.
  • WPF LinearGradientBrush using XAMLFeb 25, 2009. This article and code snippet explains how to fill gradient color in the background of controls in WPF using XAML.
  • DrawingBrush in WPFFeb 26, 2009. Through this article I am going to discuss DrawingBrush in WPF, and its properies and how we can use in our application.
  • Using a Combobox to Select ColorsMar 19, 2009. This is a short article on how to use a combo box control to display and select all the named colors.
  • BizTalk Mapping. Using the Database Lookup FunctoidApr 06, 2009. In this article, I will show how to use the Database Lookup functoid to map incoming XML node to a database table column whose result value is set to a target XML node.
  • SolidColorBrush in SilverlightApr 16, 2009. This article demonstrates how to use a solid brush in Silverlight using XAML and C#.
  • Silverlight FAQ part 2 (Animations and Transformations)Jun 23, 2009. This FAQ is completed dedicated to animations and transformations using Silverlight. The tutorial starts with animation basics like timelines and storyboard. Later the article moves ahead to talk about different animations supported and we finally end the tutorial with a simple rectangle animation.
  • Color Animation In Silverlight 3Jul 16, 2009. Writing Code Behind for Animating Color In Silverlight 3
  • Notepad in C#Aug 17, 2009. Advaance Notepad that provides searching,replace,goto and color change features
  • WPF Animations Part I- Color AnimationSep 07, 2009. WPF is a new framework that has many advanced capabilities. Animations are one of those capabilities, where an object can be animated via rotating, stretching, scaling, moving it across the screen, changing its color, etc. In this article I am going to show color anmiation on a coltrol.
  • GDI+ ApplicationNov 01, 2009. In this article we move to the more practical aspects of writing graphics applications using GDI+ in the .NET Framework.
  • Basic GDI+ ObjectsNov 09, 2009. In this article we will discuss some basic GDI+ objects, such as the color-point-, and rectangle-related structures provided by the .NET Framework library. Understanding these structures is very important because they are used throughout.
  • Transformation and XSLTNov 27, 2009. In this article I will explain you about Transformation and XSLT.
  • Alternate Row Color in ListBox in WPFDec 06, 2009. In this article we will see how we can make the Alternate Rows of the ListBox Colorful in WPF.
  • Genarate Images on fly in ASP.NetDec 13, 2009. In this article I am going to show how we can generate image of any type on fly by choosing our forecolor, background color, our text family, our font style.
  • Colors, Fonts, and Text in GDI+Dec 16, 2009. In this article I will explain about Colors, Fonts, and Text in GDI+.
  • System Colors in GDI+Dec 17, 2009. In this article I will explain about System Colors in GDI+.
  • Using Pens in GDI+Feb 04, 2010. In this article I will explain about using Pens in GDI+.
  • Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+ Feb 08, 2010. In this article I will explain about Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+.
  • Transformation with Brushes in GDI+ Feb 09, 2010. In this article I will explain about working with Transformation with Brushes in GDI+.
  • Image Transformation in WPFFeb 10, 2010. Image transformation is a process of rotating and scaling images. This article demonstrates how to rotate and translate images in WPF and XAML.
  • Adding Colors, Pens, and Brushes to the GDI+Painter Application Feb 11, 2010. In this article I will explain about working with brushes and pens in GDI+.
  • RotateTransform in WPFFeb 14, 2010. This article demonstrates how to rotate elements and controls in WPF using XAML and C#.
  • ScaleTransform in WPFFeb 14, 2010. Scaling is a process of stretching or shrinking an element. The ScaleTransform scales an element by a given factor.
  • TranslateTransform in WPFFeb 14, 2010. TranslateTransform is used to move an element from one position to other. The X and Y properties are used to move an element towards the x and y axes.
  • Working with Bitmaps in GDI+ Feb 17, 2010. In this article I will explain about working with Bitmaps in GDI+.
  • Color Mapping Using Color Objects in GDI+ Mar 03, 2010. In this article I will explain about Color Mapping Using Color Objects in GDI+.
  • Export Gridview/Listview to Excel with Color formattingApr 12, 2010. In this article, I explain how to export Gridview / Listview to excel with same color formatting using .net.
  • Transformation in GDI+Apr 13, 2010. In this article I will explain about Transformation in GDI+.
  • Alternate line Colors in Reports Using Crystal ReportsApr 15, 2010. Sometimes when we have a big reports displaying heavy textual information, one technique to visualize data in a consistent way is to shade line in alternate colors. In this article, I will show how Crystal Reports enables this technique very easily.
  • Graphics class and Transformation in GDI+Apr 15, 2010. In this article I will explain about Graphics class and Transformation in GDI+.
  • Transformation Types in GDI+Apr 18, 2010. In this article I will explain about Transformation Types in GDI+.
  • Image Transformation in GDI+Apr 21, 2010. In this article I will explain about Image Transformation in GDI+.
  • Scaling, Shearing and Rotating Colors in GDI+Apr 21, 2010. In this article I will explain about Scaling, Shearing and Rotating Colors in GDI+.
  • Color Transformation and the Color Matrix in GDI+Apr 23, 2010. In this article I will explain about Color Transformation and the Color Matrix in GDI+.
  • Text Transformation in GDI+Apr 25, 2010. In this article I will explain about Text Transformation in GDI+.
  • Dealing with transformations in WPF: PartII-Custom and advanced 2D transformationsMay 10, 2010. In a previous article we've discovered the different transformation modes. In this article, we continue discovering the transformations.
  • Dealing with transformations in WPF: Part I - Standard 2D TransformationsMay 10, 2010. In WPF there are more than one transformation, I will try to present them the 2D ones one by one including some useful related techniques.

About Color-Transformation

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks