The Wayback Machine - https://web.archive.org/web/20080609094927/http://www.codeguru.com:80/cpp/g-m/gdi/

CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

jobs.internet.com

internet.commerce
Partners & Affiliates
Free Business Cards
KVM Switches
Car Donations
Shop
SMS Gateway
Logo Design
Find Software
Calling Cards
Compare Prices
Promotional Items
Become a Teacher, MBA
Hurricane Shutters
Phone Cards
Mortgage Re-fi is Hot


RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

Home >> Visual C++ / C++ >> Graphics & Multimedia >> GDI

 Silverlight 2 SDK for Visual Studio 2008
This package is an add-on to the RTM release of Visual Studio 2008 to provide tooling for Microsoft Silverlight 2 Beta 1. It provides a Silverlight project system for developing Silverlight applications using C# or Visual Basic. »
 
 Article: What Does it Take to Build the Best RIA?
With the proliferation of Rich Interactive Application (RIA) platform choices out there, you no longer have to take a one-size-fits-all approach to developing your next RIA application. Knowing the strengths (and weaknesses) of each platform can help you to decide the best RIA for your next application. »
 
 Expression Blend 2.5 Preview
Use Expression Blend 2.5 to create and modify managed Silverlight 2-based applications. Expression Blend for Silverlight 2 includes all of the features in Expression Blend 2 but has not reached the quality level of Expression Blend 2 for WPF or Silverlight 1 development. »
 
 The Hottest Mobile Platform Meets the Hottest RIA Platform
With the Symbian OS now supporting Microsoft Silverlight, mobile developers can bring new and exciting capabilities to handsets all over the globe. Find out why developers now need to make mobile devices a core part of their RIA development strategy. »
 
 Article: Leveraging Your Flash Development with Silverlight
You're not giving up Flash any time soon (and we don't blame you.) But if you could get your Flash application working in Silverlight, why wouldn't you? We show you the tools and techniques required to have your rockin' Flash application rolled for Silverlight. »
 
Project Management Guide: Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.

GDI

Capturing Images



[Updated] Capturing Windows Regardless of Their Z-Order
Rating:
Shahar Golan - 02/13/2007
Capture a top window's content to a BMP file, regardless of the window's z-order.

Trick: How to Capture Video Screen Shots
Rating:
Heng Wah Chiew - 03/01/2004
An article describing a trick to capture video screen shots.

Barry's Screen Capture
Rating: none
Barretto VN - 02/04/2003
Capture different portions of the screen and the save them to a file. (The source code was updated.)


Fills



Creating Pattern Brushes
Rating: none
Mahipal Reddy Goli - 07/30/2003
Use the details of using PatternBrushes to fill the interiors of rectangles, ellipses, polygons, and paths.


Font Handling and Detection



Retrieving the Font Name from a TTF File
Rating: none
Philip Patrick - 05/28/2002
You can always get the font name of one of your installed fonts. But what if the font is still not installed in the system and you want to know its name programmatically?

Fonts Hot ComboBox
Rating: none
Alan Kelly - 01/19/2001
"Hot ComboBox" that dynamically loads and displays all fonts in the system (with each font name displayed in its own font)

Detecting the Display Font Size
Rating: none
chensu - 07/23/2000
Simple function to enable you to programmatically detect the user-selected font at runtime

Font Selector Combobox
Rating: none
Igo - 05/11/2000
Nifty little combobox control that lists all fonts on system and allows you to view each one's impact on test string

Automatic Font Handling Class
Rating: none
Jamie Nordmeyer - 05/01/2000
Wrapper class that greatly eases task of using fonts from within an application

Easy Way to Set the LOGFONT Structure
Rating: none
Mihai Filimon - 02/08/2000
Easy Way to Set the LOGFONT Structure


GDI



Rotate a Bitmap at Any Angle Without GetPixel/SetPixel
Rating:
Yves Maurer - 11/19/2002
Rotate a bitmap at any angle with the Windows GDI functions.

Using Placeable Metafiles: Save and Convert to HBITMAP and Raster Formats
Rating:
Alexander Fedorenko - 11/06/2002
How to save a placeable metafile, and how to convert it to a bitmap. Check out this short tutorial on preparing a custom drawing export.

Creating a Transparent Hole Region in Different Shapes on Any Window
Rating: none
Jens Rahm - 11/01/2002
[Update] Create a transparent hole region that can be a different shape on any window. A new downloadable file has been added.

Dashed and dotted lines with a pen width greater than 1 logical unit
Rating: none
Lanz Jean-Claude - 10/01/2002
Dashed and dotted lines with a pen width greater than 1 logical unit

A BitBlt-Like Function With Rotation Angle: ROTBlt
Rating: none
sgopinath - 06/25/2002
A BitBlt-like function that allows you to select the angle size to rotate the image.

Draw the US flag using GDI
Rating: none
Oren Leavitt - 10/10/2001
Just for fun, or perhaps even useful, here is a function to draw the US flag to a given HDC, in a given RECT.

Draw a curve with control points
Rating:
Tao Chen - 10/09/2001
How to draw a curve with a couple of mouse clicks. Source Code Updated.

Drawing an ArrowLine
Rating: none
Mayank Malik - 09/28/2001
Support for drawing an arrow line / measuring line.

Drawing any N-sided Polygon
Rating: none
Mayank Malik - 08/13/2001
Drawing N-sided polygons with roughly 20 lines of code!

Crosshairs and Supporting Text That Moves
Rating:
Friedrich Brunzema - 06/04/2001
This article shows how to draw crosshairs, but more importantly how to draw text and other GDI objects that need to be moved (and redrawn) interactively by the user.

Using LineDDA to produce complex line styles
Rating: none
Tim Wilson - 08/15/1999
Using LineDDA to produce complex line styles

Rotate your graphics - advanced memory device context
Rating: none
Hans B|hler - 04/20/1999
Rotate your graphics - advanced memory device context

ROP Codes, Rubber Bands, Clip Regions '& Coordinate Transforms
Rating: none
Paul Shaffer - 04/13/1999
ROP Codes, Rubber Bands, Clip Regions '& Coordinate Transforms

CColor - RGB and HLS combined in one class
Rating: none
Christian Rodemeyer - 02/23/1999
CColor - RGB and HLS combined in one class

Drawing Rotated and Skewed Ellipses
Rating:
Llew Goodstadt - 12/06/1998
Drawing Rotated and Skewed Ellipses

CGDI - Simple GDI Set And Reset
Rating:
Michael S. Scherotter - 12/06/1998
CGDI - Simple GDI Set And Reset

Drawing dotted lines
Rating: none
Jean-Edouard Lachand-Robert - 12/06/1998
Drawing dotted lines

CMetaFile class
Rating: none
Robert Caldecott - 12/06/1998
CMetaFile class

Drawing Dashed Lines and Curves
Rating: none
Llew Goodstadt - 12/06/1998
Drawing Dashed Lines and Curves


GDI+



Progress Sphere
Rating: none
Robert Tari - 06/23/2006
Learn about a class that displays and automates a translucent, shadowed modal dialog with a progress sphere.

File Open and Save As Dialogs for MFC Applications Using GDI+
Rating:
Ovidiu Cucu - 03/07/2006
Learn about CFileDialog-derived classes that offer an easy way to implement File Open and Save As dialogs in MFC applications that use GDI+.

Mould Text in Any Shape
Rating:
Sjaak Priester - 02/07/2006
Sometimes, putting text in a rectangular block may just be a little too straight. With the C++ class QEnvelopeText, you can mould a piece of body type in any shape.

Let Your Characters Dance and Wiggle
Rating:
Sjaak Priester - 10/24/2005
This versatile class arranges the characters of a text string along any curve.

Make GDI+ Less Finicky About Fonts
Rating:
Sjaak Priester - 09/23/2005
Windows GDI+ understands only half of the fonts out there. Use the QGraphicsText class to work with the other half.

Drawing Curved Objects
Rating:
Sjaak Priester - 09/08/2005
Add support for interactive curve drawing to your MFC app by dropping in theQBezierTracker class.

[Updated] Scaling, Rotating, and Shearing with QTransformTracker
Rating:
Sjaak Priester - 09/02/2005
This CRectTracker on steroids not only lets you move and scale screen objects, but also rotate and shear them.

[Updated] "Rubber Sheeting" with QWarpTracker
Rating:
Sjaak Priester - 09/01/2005
Warping is the most drastic way to change the form of a GDI+ graphics object. The class QWarpTracker lets you do it interactively.

Managed C++: Use GDI+ to Render Reflected Text
Rating:
Tom Archer - MSFT - 11/22/2004
Tom Archer illustrates how you can use the TranslateTransform and ScaleTransform methods to invert and display the reflection of a string.

Managed Extensions: Using GDI+ to Render Sheared Text
Rating:
Tom Archer - MSFT - 11/15/2004
Tom Archer illustrates how the Matrix object and transforms enable you to draw horizontally or vertically sheared text.

Managed Extensions: Using GDI+ to Draw 3D Text
Rating:
Tom Archer - MSFT - 10/25/2004
Learn how to use GDI+ to render several 3D text effects, such as shadowed, blocked, embossed, and engraved text.

Managed Extensions: Using GDI+ Brushes to Draw Text
Rating:
Tom Archer - MSFT - 10/19/2004
Tom Archer illustrates how the combination of Managed Extensions and GDI+ enable you to draw gradient and hatched text with only a few lines of C++ code.

Better GIFs with Octrees
Rating:
Sjaak Priester - 02/06/2004
Use adaptive color quantization to create better GIF files with GDI+.

A Sharp View with QGaussFilter
Rating:
Sjaak Priester - 02/04/2004
Despite its somewhat confusing name, Unsharp Mask is an important procedure to enhance the quality of bitmap pictures. The QGaussFilter class performs Unsharp Mask, and more. (The project code was updated.)

Image Properties Revealed
Rating:
Sjaak Priester - 11/04/2003
Learn everything you always wanted to know about your bitmap pictures, and more, with QImageProperties.

Weird Warps
Rating:
Sjaak Priester - 09/02/2003
GDI+ lets you "warp" graphics objects. At least, that's the story. In reality, the method is buggy to an unacceptable degree.

Playing with ColorMatrix
Rating:
Sjaak Priester - 08/12/2003
You can do great things with ColorMatrix in GDI+. Use the QColorMatrix class to open up the possibilities. You'll be able to affect gamma, saturation, contrast, brightness, hue, and more. (The demo project and source code were updated.)

Image Processing using GDI+ and VC++ 6.0
Rating:
Deepak Gupta - 02/07/2003
GDI+ can be used for image processing. Learn a simpler way to use the methods that directly address pixels to allows image processing capabilities.

Manipulating Draw Mode Settings and Using GDI+ to Save
Rating: none
Chat Pokpirom - 09/03/2002
A simple demonstration of draw mode settings as well as a demonstration using GDI+ to save to a file.

JTDraw Update
Rating: none
Tao Zhu - 06/03/2002
A simple drawing program with GDI+ support.

The GDI+
Rating:
Leandro Gustavo Biss Becker - 09/20/2001
The Microsoft GDI+ can do many cool things for you. One of these things is the ability to load or save images of a number of different types.


Icons and Cursors



How to Construct a Reusable Silverlight ASP.NET User Control
Rating: none
Chad Campbell - 05/01/2007
Silverlight provides new opportunities for building lasting connections with users. In this article, you will learn how to use this new tool to create a simple logo control.

Using Windows Vista Icons
Rating:
vlasta - 05/18/2006
Learn about the changes in the .ico format in Windows Vista and how to compile Vista icons into your applications.

Icon2002/2003
Rating:
Stefaan Casier - 03/26/2003
How to create MS Windows icons and cursors. More specifically, you'll learn how to extract them from EXEs and from resources, and then how to make icon groups. A simple Icon/Cursor Editor is included. (The demo project and source code were updated.)


Lines



Drawing Lines Using Line Equations
Rating:
Mahipal Reddy Goli - 09/08/2003
Learn how to draw lines in XY axes as well as how to find the slope of the line based on the line equation.


Work With InterSystems. Not Separate Systems. Rapidly develop and deploy connectable applications.
Is it time to make your move to the multi-threaded and parallel processing world? Find out!
Guide to Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.
Intel Go Parallel Portal: Translating Multicore Power into Application Performance
Download: Intel AMT Software Development Kit (SDK)



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Win a Lenovo ThinkPad X300 Notebook in the Intel Resource Center Scavenger Hunt
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES