473,770 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How does GDI use the graphics card for performance

Could someone explain how this works. I think the graphics card is used
to do blitting and drawing shapes like rectangles. How does it draw
using the Graphics card on the PC and why is this feature left out of
GDI+?.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
1 5329
Each card has a driver and each driver provides methods to draw lines, blit
images, fill polygons etc. Where the hardware of the card supports the
feature, the driver instructs the card to do the work which relieves the
strain on the CPU. Hardware blitting and line-drawing is a lot faster with
dedicated hardware and dual ported video memory. Where a feature is not
supported in hardware the driver does the rendering in software.

GDI+ was designed to do a lot of things that GDI can't do such as be
completely resolution independent, provide alpha-blending and shading
algorithms and have a proper graphics processing pipeline for
transformations and so-on. GDI+ *could* be hardware accellerated but
manufacturers haven't adopted it. I think that even after five years only
Matrox have a GDI+ accellerated card. I wish they'd send me one so I could
fiddle with it (big hint there Matrox...)

The reasons that MS went for a software approach for GDI+ was that they
considered hat CPU speeds and AGP / PC bus speeds were such that the more
flexible software rendering could be used and performance would be
acceptable. They always envisioned GDI+ to be for non graphic intensive
programs because DirectX fills that niche nicely. People can and do use GDI+
for reasonably graphic intensive programs but there are always a few that
expect 60frames-per-second rendering of 280*1024 images and are often
disappointed.

The GDI+ FAQ has an animation example that does a pretty reasonable job of
illustrating the capabilities of GDI+ when used in graphics. The code can
render hundreds of semi-transparent, rotating and moving objects.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

<James dean> wrote in message
news:e1******** ********@TK2MSF TNGP15.phx.gbl. ..
Could someone explain how this works. I think the graphics card is used
to do blitting and drawing shapes like rectangles. How does it draw
using the Graphics card on the PC and why is this feature left out of
GDI+?.
*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3195
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different programs. To do this I need to draw pictures of the molecules, typically using OpenGL, and do some basic control, using some widget set. The code currently uses GTK, and runs on Macintosh OS X under Fink, and Linux. I would like to support the...
3
1318
by: James dean | last post by:
From what i have read and seen the JIT compiler is very efficient and only compiles that code that it needs at runtime therefore it helps, not hinders performance. Does the JIT compiler make Gdi+ slower in any way?. *** Sent via Developersdex http://www.developersdex.com ***
5
346
by: Snuyt | last post by:
Hello, I want to make a cards game. The only problem is now to add the cards in the form. I want to add bitmaps (that part is working), but also delete those bitmaps (1 at a time) by clicking on it. Anyone knows which component or classes to use for this ?
11
1535
by: Mister Newbie | last post by:
I have no programming experience. I want to learn Python so I can make simple, 2D games. Where should I start? Can you recommend a good book? Thank you.
5
2065
by: Comatose | last post by:
Well I have Ubuntu Fiesty Fawn set up succesfully but only under the safe graphics mode from the boot menu. (The only distro I have ever got to work) I would like to get it to work under the default "Start/Install" menu option but I guess my card isn't the best. (Ati Radeon 9250 Gamer Edition) Usually when I have tried installing with other distros I get the blank black screen when it either tries to start X or GDM... Anyways, if you know how...
5
1982
by: =?Utf-8?B?TW9oYW1tYWQtUmV6YQ==?= | last post by:
Hi everyone. We're trying to diplay a message on the screen, and we want it to be always there, regardless of whether a new application is run, which may occupy that portion of the screen. Put another way, I want a text (or other types of graphics) to be always visible, even if a fullscreen game is run. We realized that we need to write some data directly to the system (or Graphics Card) memory, but the question is how we can access...
11
7654
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type characters into the display myself - but that's not the main issue at this time. I've tried a scrolling multiline text box but once the original viewable area fills up and it starts scrolling the flashing of the entire area drives me nuts. The...
0
1014
yoda
by: yoda | last post by:
I have a .dll error its for my ati graphics card its older but still works fine its just the .dll i've tried everything reinstalled the original drivers and still and then i tried to uninstall and then reinstall from the new drivers from the ATI website but still no avail and then i manually uninstalled the card and then did the same thing as above but still didn't work then i uninstalled windows XP Sp2 and then reinstalled in and the card and...
0
3037
by: raylopez99 | last post by:
Hi, I'm getting into GDI+ Forms 2.0 graphics for C#3 using Visual Studio 2008. One thing I notice: the graphics are really slow and flicker on a Pentium IV, with 2 GB RAM, even with doublebuffering turned on. I did learn tricks such as not invalidating everything, but just the control that is part of the form you are working on (i.e.,
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9453
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8929
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.