C# Corner

Resources  
  • 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.
  • 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#.
  • Using Transforms with GDI+ in C#Mar 15, 2001. Transforms are matrices that allow you to rotate and translate your graphics shapes. In this example we are going to rotate a very powerful element in C# called the GraphicsPath.
  • 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.
  • Image Shuffler Game in C#Oct 01, 2001. This game asks for a Image file to be Opened When the file is opened and shuffle button is clicked the image will be Shuffled ie rotated clockwise the task is rearrange the image in the Correct order using the button provided.
  • Rotating a 3D Cube and Sphere with GDI+Feb 08, 2002. This program rotates a 3d cube and a sphere with GDI+.
  • 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.
  • 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.
  • Spiro DesignerSep 16, 2002. Spiro designer is a partial implementation of Spirograph. Spiro Designer uses the Matrix and GraphicsPath classes with their Transform and Rotate methods to build a spiro.
  • 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.
  • 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 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Rotating the text display on a Pocket PC/Win CE deviceFeb 01, 2005. In this article let us try to understand why rotating a text/bitmap is difficult to achieve on a Pocket PC 2003/Win CE 4.2 device.
  • .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.
  • 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.
  • 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.
  • 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.
  • Star Trek -Part II: Adding moving 3D Objects to your XNA GameMay 06, 2007. This article describes how to work with 3D Objects in your XNA game. In the article you will learn how to add a rotating planet to Star Trek to enhance the background. It also talks about how to add text to your game.
  • 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.
  • Euler Rotation and 3D GraphicsJan 09, 2008. This article tells you how to use matrix multiplication to rotate 3D points around an axis.
  • 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.
  • 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.
  • 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.
  • SolidColorBrush in SilverlightApr 16, 2009. This article demonstrates how to use a solid brush in Silverlight using XAML and C#.
  • 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.
  • Working with Radio Button control and Image in Silverlight 3.0Nov 16, 2009. In this article, I will explain about how to work with Radio Button control of Silverlight. I will also explain how to rotate image in silverlight.
  • 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+.
  • 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#.
  • 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.
  • 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.
  • 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+.
  • Move and Rotate Animation in Silverlight 3May 07, 2010. In this article we will see how we can animate Move and Rotate functionalities of any UIElement.
  • Creating Custom colors for PieChart in SilverlightMay 24, 2010. In this article we will see how to change the default color changing behavior of the pie chart control in Silverlight.
  • C# Image Proccessing Techniques: Part IIJun 11, 2010. In the series of article we will build together our general use image processing class in C#.
  • How you can load HLSL effects on your XNA projectJun 21, 2010. In this article I will be showing you how you can load HLSL effects on your XNA project and use it. We will be drawing a triangle cleared with different color in each vertices.
  • Custom Gridline Color of Datagrid in WPF Jun 26, 2010. In this article we will see how we can customize the Gridline color in datagrid in WPF.
  • How to use Colors in XNAAug 02, 2010. In this article I will show you how to use Colors in XNA.
  • Syntax Highlighting in RichTextBox using C#Aug 04, 2010. This article is about how to achieve Syntax Highlight feature in RichTextBox.
  • How to rotate images in Asp.netAug 20, 2010. Here I will show you how you can rotate image in web page in asp.net.
  • Photo Slideshow in Silverlight 4Aug 30, 2010. This article demonstrates you how to make pictures slideshow, pictures list, pictures paging, pictures rotating in Silverlight 4.
  • Focus Color on Textbox controlsSep 01, 2010. In this article you will learn how to use Focus Color on Textbox controls in C#.
  • How to: Change color of rows in GridView on mouseoverOct 27, 2010. In this article I will show you how to change color of row in GridView on mouseover.
  • How to use Image Zoom In, Zoom Out, and Rotate in Silverlight 4Nov 01, 2010. This article will demonstrate Image Zoom In, Zoom Out, Rotate functionality in Silverlight 4.
  • Change Color of text, control through dropdown list in asp.netNov 12, 2010. In this article you will learn how to change through dropdown list in asp.net
  • Silverlight Rotate Transform ExampleNov 30, 2010. In this article we will be seeing how to create Silverlight Rotate Transform using Visual studio 2010.
  • Silverlight Accordion Binding using XML – Part 2Dec 01, 2010. This article is going to explain how to bind each Accordion items dynamically and how to put different colors and styles to every Accordion Item.
  • Silverlight- Slider Control Part 3Dec 06, 2010. In this article we will be seeing how to create Silverlight Slider control to change the color of the rectangle using SolidColorBrush.
  • Color of the Silverlight Scroll Bar - How to change it?Dec 14, 2010. This article guides you through a tutorial of how to change the default color of the Silverlight scroll bar and apply your own styling to the same.
  • Rotation of a Cube with OpenGL in C#Dec 14, 2010. This article draws a cube that rotates in X, Y and Z. This Windows application was developed in C # and with the help of the OpenGL libraries.
  • RichTextbox with context menu for setting Color and Font in .Net windows applicationDec 21, 2010. In this article you will learn how ro use RichTextbox with context menu for setting Color and Font in .Net windows application
  • How to Load all Colors in a ComboBox Using C#Jan 04, 2011. This tip loads all colors an ComboBox control.

About Rotating-Colors

NA

SPONSORED BY

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