.NET news » Graphics Graphics Rss Feed

download

All-in-one printing utility for user controls

This printing utility is a combination of two efforts. It has the ability to print the content of user controls and it is, moreover, an attempt to create an "all-in-one" printing utility. The latter is an integration into a single control of what is otherwise spread across several standard dialogs for printer properties, page setup options and print previewing..
11 Jul 2007, 13:15:00   Source: All-in-one printing utility for user controls   Tags: Graphics Components

Vista Style Progress Bar in C#

A Vista style Progress Bar complete with color property and animation
22 Jun 2007, 19:01:00   Source: Vista Style Progress Bar in C#   Tags: GUI Graphics Components

Transparent drop shadow in C# (GDI+)

How to create a transparent drop shadow effect for a panel control
19 Jun 2007, 12:14:00   Source: Transparent drop shadow in C# (GDI+)   Tags: Graphics

Transparent drop shadow in C# (GDI+ & Windows Forms)

How to create a panel with a transparent drop shadow in C# using GDI+

An Alpha Composited Windows Form

Windows has long had the ability to specify a region or transparency key allowing you to define an arbitrary Window border. This is often used with a background image to define an image outline as a Window frame. However, this border is composited with the desktop as a one bit mask giving you a pixelated boundary. It is especially unattractive with curvilinear borders which really need antialiasing and per pixel compositing. Aside from the unsightliness, it's not easy to define the region and/or transparency key to achieve a complex image based Window frame.

This is a Windows Forms control that works with Win32 APIs and without WPF. The control allows you to layout a 32 bit image with an alpha channel in the Forms designer and arrange additional controls within user specified areas of the image. At runtime, the control will generate a per pixel alpha composited Form with the desktop. The Form's Region property defines areas of the Form to host other controls, and it's calculated on the fly from the image's alpha channel. This control also supports runtime changing of the image. Before we discuss some of the code specifics, let's run through how you use it.

16 Jun 2007, 20:33:00   Source: An Alpha Composited Windows Form   Tags: Examples Graphics Components

How to capture a Window as an Image and save it

Take a snapshot of the main Window of any UI application
15 Jun 2007, 09:16:00   Source: How to capture a Window as an Image and save it   Tags: Examples Graphics

GUI Library for Managed DirectX Applications

I am developing a 4X Space Opera game called Star Odyssey, in the tradition of the Master of Orion series. Every game needs a User Interface and mine is no exception. The DirectX SDK provides a sample UI that looks very cool, but it is very difficult to extrapolate from the project and it relies on textured GUI elements. Since I am not very good at drawing GUI elements, it would have taken ages for me to go that way. Instead, I took the ''programmer art'' way: to create controls and other GUI elements in a dynamic way, trying my best to make it look cool at the same time. The result is presented here.
14 Jun 2007, 16:01:00   Source: GUI Library for Managed DirectX Applications   Tags: GUI Graphics Components

A thermometer control

This article demonstrates a complex analog-style thermometer control in C#. The control is in pure managed code. Most visual elements can be adjusted through the control's properties.
11 Jun 2007, 16:35:00   Source: A thermometer control   Tags: Graphics GUI Components

Hue Saturation Lightness Filter

Visual Basic .NET class implements image filter which can change hue, saturation and/or lightness of the image.
6 Jun 2007, 11:13:00   Source: Hue Saturation Lightness Filter   Tags: VB.NET Graphics

Manipulating colors in .net - Part 1

The fact is, in .net, there are only two color formats that can be used : the RGB color model and the HSB color model. Those two are encapsulated in the Color structure of the System.Drawing namespace. It is largely sufficient for simple uses, like changing the background color of a component, but insufficient if we want to develop graphic tools (or something which implies conversion between color formats).

I've started looking for other formats, like CMYK, when I was learning how to add cool design-time support to my custom controls.

3 Jun 2007, 18:22:00   Source: Manipulating colors in .net - Part 1   Tags: Graphics